No such thing as a small change | |
PerlMonks |
Re: Increment a string with letters and numbersby kcott (Archbishop) |
on Mar 28, 2013 at 09:08 UTC ( [id://1025913]=note: print w/replies, xml ) | Need Help?? |
G'day mrguy123, The following substitution should do what you want:
In use with your specific example:
And, assuming you want 0000099 to roll over to 0000100, this works unchanged:
-- Ken
In Section
Seekers of Perl Wisdom
|
|