Help for this page

Select Code to Download


  1. or download this
    while (<$filehandle>) {
        tr/blah/blah/ if /^\d{16}/; # do the translation
        print;                      # output result
    }
    
  2. or download this
    my @data = <$filehandle>;
    print $data[0];     # print first line
    ...
      print $data[$_];
    }
    print $data[-1];    # print last line