deriwana has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/local/bin/perl -i open(F,"+< $new_guestbook.html") or die "Could not open F: $!"; $out = ''; while(<F>){ s/date/localtime/eg; } seek(F,0,0); print F $out; truncate(F,tell(F)); close(F);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI Server Error
by monkeygirl (Pilgrim) on Jul 03, 2001 at 23:48 UTC | |
|
(jeffa) Re: CGI Server Error
by jeffa (Bishop) on Jul 03, 2001 at 23:50 UTC | |
|
Re: CGI Server Error
by tachyon (Chancellor) on Jul 04, 2001 at 00:25 UTC | |
|
file opening question
by deriwana (Initiate) on Jul 04, 2001 at 01:14 UTC | |
by tye (Sage) on Jul 04, 2001 at 01:37 UTC | |
by tachyon (Chancellor) on Jul 04, 2001 at 01:57 UTC | |
by Anonymous Monk on Jul 04, 2001 at 05:56 UTC | |
by tachyon (Chancellor) on Jul 04, 2001 at 15:06 UTC | |
by voyager (Friar) on Jul 04, 2001 at 01:37 UTC |