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

I like the slurp method provided by IO::All:
use IO::All; my @lines = io('file.txt')->slurp;
  • Comment on Re: Answer: How else can I read from a file without using a while loop, testing for the EOF?
  • Download Code