![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: text filesby bmccoy (Beadle) |
on Dec 13, 2001 at 00:40 UTC ( #131392=note: print w/replies, xml ) | Need Help?? |
If your file is small, you can read the entire file into an array, then just go back and forth between array elements. Once you've done your modifications, just write everything back out to disk.
-- Brett Originally posted as a Categorized Answer.
In Section
Seekers of Perl Wisdom
|
|