in reply to Is it possible to insert a record after line 5 that appears on line 10?

Building on what Corion said above, you might be interested in the Tie::File module. It allows you to access a file as a Perl array.

  • Comment on Re: Is it possible to insert a record after line 5 that appears on line 10?