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?
use IO::All; my @lines = io('file.txt')->slurp; [download]