Help for this page

Select Code to Download


  1. or download this
    tie my @file1_arr, 'Tie::File', $file1, mode => O_RDONLY;
    
    ...
        # ...
    }
    untie @file1_arr; # finished with file 1
    
  2. or download this
    open my $fh, "<", $file1 or die "Couldn't open '$file1': $!";
    
    ...
        # ...
    }
    close $fh;