Don't ask to ask, just ask | |
PerlMonks |
Re: incrementing mixed letters and numbersby shmem (Chancellor) |
on Aug 22, 2017 at 08:36 UTC ( [id://1197790]=note: print w/replies, xml ) | Need Help?? |
As poj says. Heh... didn't know that there's a module for that. This is what I have in my toolbox
which is basically the same, but lets you encode/decode with a base up to 91. So,
does what you want. Also, these subs can be used to convert from decimal to binary, octal, hex and reverse, using 2, 8 and 16 as base. But I'd use the perl builtins for that ;-)
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Seekers of Perl Wisdom
|
|