Business::BankAccount::NZ

Validates New Zealand bank account numbers
Download

Business::BankAccount::NZ Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Simon Taylor
  • Publisher web site:
  • http://search.cpan.org/~unisolve/

Business::BankAccount::NZ Tags


Business::BankAccount::NZ Description

Validates New Zealand bank account numbers Business::BankAccount::NZ is a Perl module that provides validation on New Zealand bank account numbers.The extent of the validation is simply that the account number is checked to ensure that it conforms with the notion of an account number laid out in the 'Bank Account Number Check Digit Validation Routines' brochure prepared by the Bank of New Zealand, dated 27 October, 1999.Thus the module does not tell you whether or not a given bank account number is an actual account known to the bank, just that it is a valid number according to their rules.The module uses validation code developed by John Bolland.SYNOPSIS use Business::BankAccount::NZ; # Returns a hash table with bank data in it (if specified) my $nz = Business::BankAccount::NZ->new( bank_no => '030510', account_no => '072049700' ); # Or set the bank and account numbers independantly of new() my $nz = Business::BankAccount::NZ->new(); $nz->set_bank_no('086523'); $nz->set_account_no('1954512001'); # Either way, you'd validate the account number with... $nz->validate() or die "$nz->{error_string}"; print $nz->{error_string} if ($nz->{error}); print "The bank name is " . $nz->{bank_name} . " "; Requirements: · Perl


Business::BankAccount::NZ Related Software