in reply to `cat $myfile`; vs. open(MYHANDLE, "myfile")
For portability I don't think I'd recommend using backticks and cat. I personally would do something like:
my $myfile='path_to_my_file'; open my $fh, '<', $myfile or die $!; my @myarray=<$myfile>; close $fh;
|
---|
In Section
Seekers of Perl Wisdom