in reply to Re: Flocking and In-place editing
in thread Flocking and In-place editing
Does anybody know if this is right, or even the way to lock whilst using inplace editing? Regards, Philuse Fcntl ':flock'; @ARGV = "file.tab"; $^I = ".bak"; flock(ARGV,LOCK_EX); seek(ARGV, 0, 2); while (<>) { s/foo/bar/; print; } flock(ARGV,LOCK_UN);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Flocking and In-place editing
by Anonymous Monk on Jan 27, 2004 at 18:00 UTC |