go ahead... be a heretic | |
PerlMonks |
Re: insert into beginning of fileby fsn (Friar) |
on Jul 22, 2002 at 15:07 UTC ( [id://184089]=note: print w/replies, xml ) | Need Help?? |
Tie::File is of course the way to do it. The old, hardcore, quickhack, low memory, no extra module, the-way-they-used-to-do-it-in-the-80's way is:
and then rename the tempfile.
In Section
Seekers of Perl Wisdom
|
|