- or download this
foreach $line (<MSG>) {
chomp($line);
push(@array, $line);
- or download this
chomp( @array = <MSG> );
- or download this
use strict;
use warnings;
- or download this
open my $msgFH, q{<}, q{/some/file}
or die qq{open: < /some/file: $!\n};