NAME
Geo::Address::Mail::US - A Mailing Address in the United States
SYNOPSIS
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'
);
ATTRIBUTES
Geo::Address::Mail::US has all the attributes of Geo::Address::Mail. The following attributes are either modified or new.
postal_code
Postal codes are validated to conform to the USPS ZIP (and optional +4) standard.
street2
Addresses in the United States often have an Apartment number, Suite number or other sub-street unit. This field provides for that.
state
The state for this address. Added in US as not all countries have the concept of a state.
AUTHOR
Cory G Watson, <gphat at cpan.org>
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
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.