or download this
sub obvious{
# (explained : count from zero until Z, return the current count if w
+e found the position we are looking for)
...
#23456789012345678901234567890123456789012345678901234567890
$n=pop;for(;$n ne((0..9),(A..Z))[$a];$a++){}"$a"||0;
}