1US(3)                 User Contributed Perl Documentation                US(3)
2
3
4

NAME

6       Locale::US - two letter codes for state identification in the United
7       States and vice versa.
8

SYNOPSIS

10         use Locale::US;
11
12         my $u = new Locale::US;
13
14         my $state = $u->{code2state}{$code};
15         my $code  = $u->{state2code}{$state};
16
17         my @state = $u->all_state_names;
18         my @code  = $u->all_state_codes;
19

ABSTRACT

21       Map from US two-letter codes to states and vice versa.
22

DESCRIPTION

24   MAPPING
25       $self->{code2state}
26
27       $self->{state2code}
28
29   DUMPING
30       $self->all_state_names
31
32       $self->all_state_codes
33

KNOWN BUGS AND LIMITATIONS

35       ·   The state name is returned in "uc()" format.
36
37       ·   neither hash is strict, though they should be.
38

SEE ALSO

40       Locale::Country
41
42       http://www.usps.gov/ncsc/lookups/usps_abbreviations.htm
43
44           Online file with the USPS two-letter codes for the United States and its possessions.
45

AUXILIARY CODE:

47       lynx -dump http://www.usps.gov/ncsc/lookups/usps_abbreviations.htm >
48       kruft.txt kruft2codes.pl
49
51       Copyright: Copyright (c) 2002-2007 Terrence Brannon.  All rights
52       reserved.  This program is free software; you can redistribute it
53       and/or modify it under the same terms as Perl itself.
54
55       License: GPL, Artistic, available in the Debian Linux Distribution at
56       /usr/share/common-licenses/{GPL,Artistic}
57

AUTHOR

59       T. M. Brannon, <tbone@cpan.org>
60
62       Copyright 2003 by T. M. Brannon
63
64
65
66perl v5.12.3                      2011-03-22                             US(3)
Impressum