On Sat, Jul 28, 2001 at 04:15:33PM -0500, [EMAIL PROTECTED] wrote:
> #!/usr/local/bin/perl
>
> #use strict;
> use warnings;
>
> my $file = 'data';
> my $TIMEOUT = 10;
> sub LOCK_SH { 1 };
> sub LOCK_EX { 2 };
> sub LOCK_UN { 8 };
Do not manually define these constants. It will work, but it's b
I am trying to use L Stein's file locking subroutine from 'Official Guide
to Programming with CGI.pm' for a light duty cgi program I am writing. I'd
like to use 'use strict', but I can't get perl to agree with the return
at the end of the subroutine. (See return below)
Here is a sample program: