NAME
IO::File::Lockable - supply lock based methods for I/O File objects
SYNOPSIS
use base qw(IO::File::Lockable);
DESCRIPTION
IO::File::flock
inherits from IO::File
.
CONSTRUCTOR
- new (FILENAME [,OPEN_MODE [,LOCK_METHOD [,TIMEOUT]]]);
-
my $fh = new IO::File::Lockable($filename); my $fh = new IO::File::Lockable($filename,'<'); my $fh = new IO::File::Lockable($filename,'>','lock_sh'); my $fh = new IO::File::Lockable($filename,'<','lock_ex',60); etc,etc....
METHODS
- $fh->open(FILENAME [,MODE [,LOCK_MODE [,TIMEOUT]]]);
- $fh->lock_ex([TIMEOUT]);
- $fh->lock_sh([TIMEOUT]);
- $fh->lock_un([TIMEOUT]);
AUTHOR
Shin Honda (makoto[at]cpan.org,makoto[at]cpan.jp)
copyright
Copyright (c) 2004- Shin Honda. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.