- or download this
print do {use autodie; open my $fh, '<', 'test.txt'; local $/ = undef;
+ <$fh>};
- or download this
use IO::File;
...
print $fh->getlines;
} # $fh->close is unnecessary.
- or download this
use IO::File;
print $_->getlines for IO::File->new('foo', 'r');