Debian Codegraph @

README

raw
1 IO::LockedFile
2
3 Copyright (c) 2001-2002 Ockham Technology N.V. & Rani Pinchuk.
4 All rights reserved.
5 This package is free software; you can redistribute it and/or
6 modify it under the same terms as Perl itself.
7
8 DESCRIPTION
9
10 In its simplistic use, the IO::LockedFile class gives us the same
11 interface of the IO::File class to files with the unique difference
12 that those files are locked using the flock mechanism. Yet, the
13 class provides us with the ability to use other schemes then flock.
14
15 Example for the use of the class:
16
17 use IO::LockedFile;
18
19 # create new locked file object. $file will hold a file handle.
20 # if the file is already locked, the method will not return until the
21 # file is unlocked
22 my $file = new IO::LockedFile(">locked1.txt");
23
24 # when we close the file - it become unlocked.
25 $file->close();
26
27 PREREQUISITES
28
29 IO::File
30 Fcntl
31
32 INSTALLATION
33
34 Follow the standard installation procedure for Perl modules, which is to
35 type the following commands:
36
37 perl Makefile.PL
38 make
39 make test
40 make install
41
42 You'll probably need to do the last as root.
43
44 AUTHOR NOTES
45
46 After I wrote the first version of this module that was extremely simple,
47 I found out that actually my knowledge in locking files was quite poor.
48 Yet, with the help of some great people, the module became (hopefully)
49 better.
50
51 This is why I would like to ask you for help when you see bugs, mistakes
52 or just if you have any suggestions or comments - please email me.
53
54 Rani Pinchuk
55 [email protected]
56