Help for this page

Select Code to Download


  1. or download this
    open (my $handle, '<', $file) or die "Can't read '$file': $!";
    my $contents = do { local $/; <$file> };
    
  2. or download this
    my $pos = 0;
    while (<$handle>){
    ...
        }
        $pos += $line_len;
    }