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


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