Do you know where your variables are? | |
PerlMonks |
Re: incrementing a numberby chromatic (Archbishop) |
on Oct 12, 2010 at 16:23 UTC ( [id://864894]=note: print w/replies, xml ) | Need Help?? |
If your columns always match the regular expression [A-Z]+\d+, you can match and increment only the numeric portion: $fields[12] =~ s/(\d+)/ $1 + 1 /e;
In Section
Seekers of Perl Wisdom
|
|