diff options
| -rw-r--r-- | pos.pl | 11 | 
1 files changed, 11 insertions, 0 deletions
| @@ -0,0 +1,11 @@ +#!/usr/bin/env perl -w + +use strict; + +my $test = 'test 12 0 45'; + +$test =~ /(\d+)/g; +pos($test) = 7; +$test =~ s/\G([^\d]*)(\d+)/$1 . ($2 + 1)/e; + +print "$test\n"; | 
