Geo::Address::Mail::US - A Mailing Address in the United States
Geo::Address::Mail::US is a subclass of Geo::Address::Mail that provides specific validation and attributes for mailing addresses located in the United States.
use Geo::Address::Mail::US; my $add = Geo::Address::Mail::US->new( name => 'Cory G Watson', street => '123 Main St', street2 => 'Apt 3B', city => 'Testville', postal_code => '12345' );
Geo::Address::Mail::US has all the attributes of Geo::Address::Mail. The following attributes are either modified or new.
Postal codes are validated to conform to the USPS ZIP (and optional +4) standard.
Addresses in the United States often have an Apartment number, Suite number or other sub-street unit. This field provides for that.
The state for this address. Added in US as not all countries have the concept of a state.
Cory G Watson, <gphat at cpan.org>
<gphat at cpan.org>
Copyright 2010 Cory G Watson.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Geo::Address::Mail, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::Address::Mail
CPAN shell
perl -MCPAN -e shell install Geo::Address::Mail
For more information on module installation, please visit the detailed CPAN module installation guide.