Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: RegEx bump version number

by jettero (Monsignor)
on Apr 25, 2007 at 17:33 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2024-04-24 15:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found