There's more than one way to do things | |
PerlMonks |
Re: Re: insert into beginning of fileby broquaint (Abbot) |
on Jul 22, 2002 at 13:56 UTC ( [id://184044]=note: print w/replies, xml ) | Need Help?? |
Supplementary to Abigail-II's advice here's example code of how you might insert a line into the beginning of a file using Tie::File
If you're not doing line-based insertion into your file then your best choice is to open a new file and write to that. HTH
_________
In Section
Seekers of Perl Wisdom
|
|