title: perl increment month with localtime
body: <p>i have a date $time2 and want to increment by one month up to 07/01/2015 (07/0/2015, 07/03/2015, 07/04/2015, ...).    </p>
  
  <p>increment by one day works fine:   </p>
  
  <pre><code>$t2 = strftime( "%m/%d/%Y", localtime( $time2 + 24 * 3600));   # 07/01/2013
  </code></pre>
  
  <p>increment by one month i have an error:   </p>
  
  <pre><code>my $t02 = strftime( "%m/%d/%Y", localtime( $time2 + 0 * 3600));  
  my @t22 = ($t02 =~ m|(\d{2})/(\d{2})/(\d{4})| );  
  $t22[1]++;      
  $t2 = $t22[0]."/".$t22[1]."/".$t22[1];
  </code></pre>
  
  <p>have error<code>Month '-1' out of range 0..11</code>
  how to fix it?
  <a href="http://pastebin.com/6eDC4T56" rel="nofollow">codei HERE</a></p>