Help for this page

Select Code to Download


  1. or download this
    use strict;
    open sourcefile, '<', "source.cbl" or die "Can't open: $!";
    ...
            print targetfile $line;
        } elsif ($line =~ s/PROGRAM -BEGIN\./begin/) {
            print targetfile $line;
    
  2. or download this
    use strict;
    use warnings;
    ...
        $line =~ s/$_-[0]/$_->[1]/ for @pairs;
        print targetfile $line;
    }