sub elfProef ($) { my ($account) = @_; die("elfproef: `$account' isn't 9 characters long\n") unless length($account) == 9; my $sum = 0; foreach (reverse(-9..-1)) { $sum += (substr($account, $_, 1) * abs($_)); } return not ($sum % 11); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Elfproef (Dutch bank account check)
by CheeseLord (Deacon) on Jul 28, 2001 at 22:40 UTC | |
|
Re: Elfproef (Dutch bank account check)
by petral (Curate) on Jul 27, 2001 at 01:52 UTC | |
by Treenaks (Initiate) on Jul 28, 2001 at 21:39 UTC | |
by petral (Curate) on Jul 29, 2001 at 00:48 UTC |