Re: "Convert" perl command line to simple script



On Jun 28, 12:47 pm, Paul Lalli <mri...@xxxxxxxxx> wrote:

$ perl -MO=Deparse -pi -e 's/..\index/index/g' *.html
LINE: while (defined($_ = <ARGV>)) {
s/..index/index/g;}

continue {
print $_;

}

Hrm. Accidentally truncated my output.... the start of that code
should include
BEGIN { $^I = ""; }

which is the effect of the -i parameter.

Paul Lalli

.