in reply to Style Comments
Take a look at Tie::File. Your program becomes something like
#! perl use strict; use Tie::File; my @lines; tie @lines, 'Tie::File', 'filename'; open OUT, '>', 'outputfile' or die $!; print OUT @lines[0, -1, 0 .. $#lines]; close OUT;
That just prepends the first and last lines to the whole file without doing all the timestamp stuff, but it gives an the idea.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Style Comments
by wolis (Scribe) on Sep 04, 2003 at 23:59 UTC | |
by blokhead (Monsignor) on Sep 05, 2003 at 00:13 UTC | |
by wolis (Scribe) on Sep 09, 2003 at 02:36 UTC | |
by BrowserUk (Patriarch) on Sep 05, 2003 at 09:51 UTC |