- 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;
- or download this
use Modern::Perl;
my $filename = $ARGV[0];
...
$line =~ s/$match/module $ARGV[1]/;
print $OUTFILE $line;
}
- or download this
my $match = "(?<=module )$ARGV[2].*?([\\(;])"; - or download this
#!/usr/bin/perl -w
BEGIN {undef $/;}
...
next;
}
}
- or download this
my.pl f7 NEW OLD
Now parsing f7
Matching: (?<=module )OLD.*?([\(;])
...
endmodule
INSIDE IF