Locale::US - two letter codes for state identification in the United States and vice versa.
use Locale::US; my $u = new Locale::US; my $state = $u->{code2state}{$code}; my $code = $u->{state2code}{$state}; my @state = $u->all_state_names; my @code = $u->all_state_codes;
Map from US two-letter codes to statees and vice versa.
The state name is returned in uc() format.
uc()
neither hash is strict, though they should be.
Locale::Country
http://www.usps.gov/ncsc/lookups/usps_abbreviations.htm
Online file with the USPS two-letter codes for the United States and its possessions.
lynx -dump http://www.usps.gov/ncsc/lookups/usps_abbreviations.htm > kruft.txt kruft2codes.pl
T. M. Brannon, <tbone@cpan.org>
Copyright 2003 by T. M. Brannon
To install Locale::US, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Locale::US
CPAN shell
perl -MCPAN -e shell install Locale::US
For more information on module installation, please visit the detailed CPAN module installation guide.