Welcome to the Monastery | |
PerlMonks |
Re: incrementing a numberby choroba (Cardinal) |
on Oct 12, 2010 at 16:24 UTC ( [id://864896]=note: print w/replies, xml ) | Need Help?? |
AA825944001 is not a number, it is a string. If you mean just the numeric part, you have to separate it, increment and glue together again. In fact, Perl can increment strings as well, just try
Just be careful with strings like AA99 - is AB00 what you really want to get from them?
In Section
Seekers of Perl Wisdom
|
|