If your files aren't too huge, or even if they are and you are not in a screaming hurry, then Tie::File allows you to treat files as an array of lines and update them in-place.
In reply to Re: remove and insert
by BrowserUk
in thread remove and insert
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |