- or download this
use IO::File;
my $fh = IO::File->new('foo', 'r');
# do something with $fh
undef $fh;
- or download this
# continuing from above
$fh->close;
- or download this
# The output is something like IO::File=GLOB(yadda yadda)
print "$fh" if defined $fh;
- or download this
my @lines = IO::File->new('foo')->getlines;