Postal::US::State - State names and codes
use Postal::US::State; my $code = Postal::US::State->code('Texas'); my $state = Postal::US::State->state('TX');
State names/codes data are built-in to this module (generated from http://www.usps.com/ncsc/lookups/abbr_state.txt by the build process).
Retrieve the two-letter code for the given state name (case insensitive.) Returns undefined if the state is unknown.
my $code = Postal::US::State->code('Texas');
Returns the state name for the given code.
my $state = Postal::US::State->state('TX');
Eric Wilhelm @ <ewilhelm at cpan dot org>
http://scratchcomputing.com/
If you found this module on CPAN, please report any bugs or feature requests through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
If you pulled this development version from my /svn/, please contact me directly.
Copyright (C) 2010 Eric L. Wilhelm, All Rights Reserved.
Absolutely, positively NO WARRANTY, neither express or implied, is offered with this software. You use this software at your own risk. In case of loss, no person or entity owes you anything whatsoever. You have been warned.
To install Postal::US::State, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Postal::US::State
CPAN shell
perl -MCPAN -e shell install Postal::US::State
For more information on module installation, please visit the detailed CPAN module installation guide.