in reply to popping or shifting a line off a file

Use Tie::File.

  • Comment on Re: popping or shifting a line off a file