Check out perldoc -q 'insert a line' (the question in question is in perlfaq5, "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?" if the -q doesn't work).
In reply to Re: Printing to a specific place in a file
by Fletch
in thread Printing to a specific place in a file
by lagrenouille
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |