go ahead... be a heretic | |
PerlMonks |
Re: Luhn Number Golfby jmcnamara (Monsignor) |
on Feb 26, 2002 at 15:27 UTC ( [id://147595]=note: print w/replies, xml ) | Need Help?? |
82 chars (updated). Returns 1 for valid, undef otherwise. Your solution seems to be out by one for input that has an odd number of digits. Update: Here is another non-reverse variation at 72 chars. Still a mile behind chipmunk however.
--
In Section
Meditations
|
|