in reply to Re: OptiPerls Pattern Replace (Regexpses for one Line)
in thread OptiPerls Pattern Replace (Regexpses for one Line)
Here is an example, I had something like:
my $foobar = substr($line,20,30); # this is :;- a comment
which I changed to
for a couple of hundreds of variables.#***** # this is :;- a comment #***** sub foobar($){ return substr($_[0],20,30); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: OptiPerls Pattern Replace (Regexpses for one Line)
by tphyahoo (Vicar) on Mar 02, 2005 at 10:12 UTC |