Help for this page

Select Code to Download


  1. or download this
    my $large_file = '/tmp/some_large_file.txt';
    open(my $in, '<', $large_file) or die "Cannot read $large_file: $!";
    ...
    }
    # close is optional once $in goes out of scope
    close($in)