- or download this
{
my @to_b36 = (0 .. 9, 'A' .. 'Z');
my %to_num;
...
sub inc_b36 { num_to_b36(&b36_to_num + 1) }
}
- or download this
{
# in the same block as the previous code
...
return $n;
}
}
- or download this
{
# ditto
...
return scalar reverse $n;
}
}
- or download this
sub GOLF {
local$_=pop;@_{@_=(
0..9,A..Z)}=0..35;s
...
$1}+1].$-x length$2
/e?$_:1 .$-x y!!!c
}