P is for Practical | |
PerlMonks |
Re: RegEx bump version numberby jettero (Monsignor) |
on Apr 25, 2007 at 17:33 UTC ( [id://612061]=note: print w/replies, xml ) | Need Help?? |
Well, ... would {$1}$2+1{$3} normally compile? That /e means to evaluate the rhs like it was any other block of perl code. I suspect you want something more like $version =~ s/(\d+)(?=\.\d+\z)/$1 + 1/e; -Paul
In Section
Seekers of Perl Wisdom
|
|