Skip Menu |

This queue is for tickets about the File-FcntlLock CPAN distribution.

Report information
The Basics
Id: 39119
Status: new
Priority: 0/
Queue: File-FcntlLock

People
Owner: Nobody in particular
Requestors: FANY [...] cpan.org
Cc: 446003 [...] rt.noris.net
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 0.09
  • 0.10
Fixed in: (no value)



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 )