in reply to Is it possible to alter a flat file in memory?

Try Tie::File . You are still reading and writing the file, but it will keep you from having to call open and close directly.
  • Comment on Re: Is it possible to alter a flat file in memory?