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

or maybe you can use file-slurp function..
use File::Slurp; # to get your data into scalar variable $output_string = read_file($filename); # or this to get your data into array @output_array = read_file($filename);
  • Comment on Re: How else can I read from a file without using a while loop, testing for the EOF?
  • Download Code