http://qs1969.pair.com?node_id=612061


in reply to RegEx bump version number

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