At 03:08 PM 7/5/02 +1000, Toby Stuart wrote:
>Hi Karen,
>
><snip>
>use strict;
>use warnings;
>
>use Fcntl qw(:flock);
>
>open(F,"somefile.txt") || die $!;
>flock(F,LOCK_EX);
># do stuff with F
>flock(F,LOCK_UN);
>close(F);
></snip>

There seems to be a consensus to avoid LOCK_UN, although it will make 
no difference on newer perls.  See 
http://groups.google.com/groups?selm=slrna444da.20q.mgjv%40verbruggen.comdyn.com.au&output=gplain
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com/


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to