airman has asked for the wisdom of the Perl Monks concerning the following question:
The following does NOT workopen(INFILE, "file.htm"); flock(INFILE, 1); @lines=<INFILE>; close(INFILE); open(OUTFILE, "+>$file.htm"); flock(OUTFILE, 2); print OUTFILE "stuff"; close(OUTFILE);
open(OUTFILE, ">$file.htm"); flock(OUTFILE, 2); @lines=<OUTFILE>; print OUTFILE "stuff"; close(OUTFILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: flock issue
by turnstep (Parson) on Mar 15, 2001 at 03:49 UTC | |
|
Re (tilly) 1: flock issue
by tilly (Archbishop) on Mar 15, 2001 at 15:40 UTC | |
|
Re: flock issue
by tomhukins (Curate) on Mar 15, 2001 at 21:25 UTC | |
|
Re: flock issue
by airman (Initiate) on Mar 15, 2001 at 04:06 UTC |