CC: | 446003 [...] rt.noris.net |
Subject: | errors in synopsis |
The synopsis section of the POD to this module contains two bugs (wrong
module name in object instantiaton and one right parenthesis too much at
a method call).
Attached please find a patch for that.
Regards,
fany
Subject: | FcntlLock.pm.patch |
--- FcntlLock.pm 2008-05-14 23:28:39.000000000 +0200
+++ FcntlLock.pm 2008-09-09 13:55:45.361664692 +0200
@@ -41,7 +41,7 @@
use File::FcntlLock;
- my $fs = new Fcntl::FcntlLock;
+ my $fs = new File::FcntlLock;
$fs->l_type( F_RDLCK );
$fs->l_whence( SEEK_CUR );
$fs->l_start( 100 );
@@ -49,7 +49,7 @@
my $fh;
open $fh, "<file_name" or die "Can't open file: $!\n";
- $fs->lock( $fh, F_SETLK ) )
+ $fs->lock( $fh, F_SETLK )
or print "Locking failed: " . $fs->error . "\n";
$fs->l_type( F_UNLCK );
$fs->lock( $fh, F_SETLK )