http://www.perlmonks.org?node_id=143274


in reply to The Perl Review

Here's another similar one:
$b=$b*36-48-7*/\D/+ord for pop=~/./g; print$b,$/
36 or 47 chars depending on how you count. Another WTDI using recursion:
sub x{ $_&&-7*/\D$/+ord(chop)-48+36*&x } $_=pop; print x,$/
which is 31 chars inside the sub and 55 chars total.

  p