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.

Reply via email to