in reply to Re: `cat $myfile`; vs. open(MYHANDLE, "myfile")in thread `cat $myfile`; vs. open(MYHANDLE, "myfile")
open(my $fh, '<', $filename) or die("Unable to open ...: $!\n"); while (<$fh>) { chomp; ... } [download]