![]() |
|
"be consistent" | |
PerlMonks |
Re: writing to a fileby joeface (Pilgrim) |
on Jul 01, 2005 at 14:55 UTC ( #471745=note: print w/replies, xml ) | Need Help?? |
You can use Tie::File to treat the file like an array, then use unshift to add to the beginning of the array
If you need to add more than one line, you can get your new content into an array and loop through it:
In Section
Seekers of Perl Wisdom
|
|