Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    BEGIN {undef $/;}
    ...
    open OUTFILE, ">$ARGV[0]" || die "Failed to create $ARGV[0]\n";
    print OUTFILE ($string);
    close OUTFILE;
    
  2. or download this
    use Modern::Perl;
    
    my $filename = $ARGV[0];
    ...
        $line =~ s/$match/module $ARGV[1]/;
        print $OUTFILE $line;
    }
    
  3. or download this
    my $match = "(?<=module )$ARGV[2].*?([\\(;])";
  4. or download this
    #!/usr/bin/perl -w
    
    BEGIN {undef $/;}
    ...
        next; 
        }
    }
    
  5. or download this
    my.pl f7 NEW OLD
    Now parsing f7
    Matching: (?<=module )OLD.*?([\(;])
    ...
    endmodule
    
    INSIDE IF