jerrygarciuh has asked for the wisdom of the Perl Monks concerning the following question:
open (FH, "+< $path_to_text") or die "where's the damn file? : $!"; #flock (FH,LOCK_EX) or die "Couldn't flock: $!"; #why does flock result in compilation errors? my @old_file = <FH>; truncate (FH,0) or die "Can't truncate: $!"; print FH "<TR> <TD> <H3> $topic by <a href=mailto:$name\@sludgefac +tor.com>"; print FH "$name</a> </H3> </TR> <P>\n"; print FH "<TR> <TD> $words <p> </TD> </TR><P>\n"; print FH @old_file; close FH or die "close damn you : $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Wht is my .txt file full of garbage? And why does this flock cause a compilation error?
by rchiav (Deacon) on Nov 14, 2001 at 06:59 UTC | |
by jerrygarciuh (Curate) on Nov 14, 2001 at 07:25 UTC | |
|
Re: Wht is my .txt file full of garbage? And why does this flock cause a compilation error?
by rob_au (Abbot) on Nov 14, 2001 at 06:47 UTC | |
by jerrygarciuh (Curate) on Nov 14, 2001 at 07:05 UTC |