No such thing as a small change | |
PerlMonks |
Re: Edit File in placeby tommyw (Hermit) |
on Aug 13, 2002 at 11:41 UTC ( [id://189744]=note: print w/replies, xml ) | Need Help?? |
You've reinvented one of the most common questions asked here. And you've already implemented one of the most common solutions. So bonus points for that ;-) Unfortunately, while there are variations, there isn't really a better way of performing this trick. But you could see How do I change one line in a file/delete a line in a file/insert a line in the middle of a file/append to the beginning of a file? for further comments --
In Section
Seekers of Perl Wisdom
|
|