Help for this page

Select Code to Download


  1. or download this
    sub luhn {
    #        1         2         3         4         5     
    #234567890123456789012345678901234567890123456789012345
    my$s;$_=pop;~s/(.)(.)/$2.$1*2/ge;$s+=$_ for/./g;!chop$s
    }