|
Hi,
I have a regex in which I want
to increment all matching numbers by some value. Something
like
$increment = 10
$string =~ s/(\d+)/$1+ $increment/g;
I tried the /e modifier (to evaluate perl code on
the RHS of substitution) but Perl complains on that
and gives me a compile error.
Any hints on this?
Thanks.
|
- Re: evaluate perl code Sumit
- Re: evaluate perl code Basil Daoust
- Re: evaluate perl code Rob Dixon
- RE: evaluate perl code Moon, John
