Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: RegEx bump version number

by jettero (Monsignor)
on Apr 25, 2007 at 17:33 UTC ( #612061=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://612061]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2022-09-27 04:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (118 votes). Check out past polls.

    Notices?