Take a look at the following options:
Tie::File, which lets you treat a file just like an array.
perlvar on $^I for how to make Perl edit a file in-place.
In reply to Re: Appending to a file.
by Corion
in thread Appending to a file.
by xavierarmadillo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |