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);
In reply to Re: How else can I read from a file without using a while loop, testing for the EOF?
by t0j0
in thread How else can I read from a file without using a while loop, testing for the EOF?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |