Help for this page

Select Code to Download


  1. or download this
    open my $ifh, '<', $infile or die "$infile: $!";
    my $data = do { local $/; <$ifh> };
    close $ifh;
    
  2. or download this
    use warnings;
    use strict;
    ...
        close $ifh;
    }
    close $ofh;
    
  3. or download this
    perl -nle '/^(\d{3}),-->(\d{3}),$/||die;defined$x&&print"$x,-->$2,";$x
    +=$1' SBNUM_*.txt >v2test.txt