pmy %next; @next{0..9,'a'..'y','A'..'Y'} = (1..9,'a'..'z','B'..'Z'); sub inc36 { my ($l, $i, $r) = shift=~/^(.*?)([^zZ]?)([zZ]*)$/; $l . $next{ $i||0 } . (0 x length $r) }
In reply to Re: Re: Base36 numbers: speed and golf
by petral
in thread Base36 numbers: speed and golf
by nop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |