Help for this page

Select Code to Download


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