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 reply to Re: incrementing a number
by chromatic
in thread incrementing a number
by mmittiga17
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |