Help for this page

Select Code to Download


  1. or download this
    {
       use IO::File;
       my $f = IO::File->new($file);
       # no need to close
    }
    
  2. or download this
    foreach (@files)
    {
      my $io = new IO::File "< $_" or die;
      # read from $io
    }