Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: RegEx bump version number

by NetWallah (Canon)
on Apr 25, 2007 at 17:40 UTC ( #612062=note: print w/replies, xml ) Need Help??


in reply to RegEx bump version number

Try:
$version =~ s/(\d+\.\d+\.)(\d+)(\.\d+)/$1.($2+1).$3/e;
(Works for me).jettero(++)'s more concise code also works.

     "Choose a job you like and you will never have to work a day of your life" - Confucius

Replies are listed 'Best First'.
Re^2: RegEx bump version number
by ady (Deacon) on Apr 25, 2007 at 17:46 UTC
    Bingo! String cat seems to be the solution -- tnx a load!
    allan

Log In?
Username:
Password:

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

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




    Results (125 votes). Check out past polls.

    Notices?