Business::AU::ABN

Validate and format Australian Business Numbers
Download

Business::AU::ABN Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Adam Kennedy
  • Publisher web site:
  • http://search.cpan.org/~adamk/

Business::AU::ABN Tags


Business::AU::ABN Description

Validate and format Australian Business Numbers Business::AU::ABN is a Perl module that can be used to validate and format Australian Business Numbers (ACN).SYNOPSIS # Create a new validated ABN object use Business::AU::ABN; my $ABN = new Business::AU::ABN( '12 004 044 937' ); # Validate in a single method call Business::AU::ABN->validate_abn( '12 004 044 937' ); # Validate in a single function call Business::AU::ABN::validate_abn( '12 004 044 937' ); # The validate_abn function is also importable use Business::AU::ABN 'validate_abn'; validate_abn( '12 004 044 937' );The Australian Business Number ( ABN ) is a government allocated number required by all businesses in order to trade in Australia. It is intented to provide a central, universal, and unique identifier for all businesses.It's also rather neat, in that it is capable of self-validating. Much like a credit card number does, a simple algorithm applied to the digits can confirm that the number is valid. ( Although the business may not actually exist ). The checksum algorithm was specifically designed to catch situations in which you get two digits the wrong way around, or something of that nature.Business::AU::ABN provides a validation/formatting mechanism, and an object form of an ABN number. ABNs are reformatted into the most preferred format, '01 234 567 890'.The object itself automatically stringifies to the formatted number, so with an object, you can safely do print "Your ABN $ABN looks OK" and other things of that nature. Requirements: · Perl


Business::AU::ABN Related Software