http://qs1969.pair.com?node_id=864892

mmittiga17 has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, I am trying to increment the following number in Perl but it wont do it: AA825944001 --> AA825944002

I have tried the following and it does not work, it returns 1

$TranNum= $fields[12] +1; $fields[12] =~s/$fields[12]/$TranNum/g;

I assume it has to do with the alpha characters, but I have thousands of numbers in a column that I need to increment by 1. Any help will be appreciated.