in reply to How else can I read from a file without using a while loop, testing for the EOF?

I wish you'd use a description... what's with the "no while loop" idea? I mean, you can do:
@lines = <FILE>;
but that's potentially silly and memory-hogging.

Originally posted as a Categorized Answer.

  • Comment on Re: How else can I read from a file without using a while loop, testing for the EOF?
  • Download Code