Tie::File will be a big help - it will let you treat the file as an array of lines. You'll be able to splice in a line while examining the surrounding context, and the modifications will appear on disk. You simply address the lines with an array index.
After Compline,
Zaxo
In reply to Re: adding lines at specific addresses
by Zaxo
in thread adding lines at specific addresses
by pindar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |