in reply to Re: Luhn Number Golf
in thread Luhn Number Golf
52 chars:
  p
sub luhn { $_=reverse@_;s/(.)(.)/$1.$2*2/ge;s/\B/+/g;eval=~/0$/ }
  p
|
---|
In Section
Meditations