title: Increment the occurrence of all the digits in a string perl
body: <p>I want to increment the occurrence of all the digits in a string perl
  eg. if I have string as $str = "go to page number 34 annd read the 3rd line"
  it should be changed to  $str = "go to page number 35 and read the 4rd line".</p>
  
  <p>I tried using </p>
  
  <pre><code>$str =~ s/[\d]/$&amp;+1/g
  </code></pre>
  
  <p>but it gives output as string i.e.  "go to page number 34+1 and read the 3+1rd line"</p>