Hi,
A larger version of this idea exists in the iso-codes package, with
the iso-code subdivision
codes for all countries, see /usr/share/xml/iso-codes/iso_3166-2.xml
For each US state it has the 2nd-level code , so US-MI is Michigan,
for example.
Similar 2nd-level codes exist for each country, so FR-75 is the French
Department of Paris,
IE-D is Dublin, Ireland, and GB-ESX is the English county of Essex.
The iso-codes package provides translations for these lists.
Perhaps generalizing this module might be a good idea ?
Regards
Alastair
On 17 Nov 2007, at 18:51, Matt Brown wrote:
On 11/17/07, Ron Johnson <ron.l.john...@cox.net> wrote:
This Perl module provides methods allowing United States' two-letter
state identification parsing from state code to state name and vice
versa.
Is a package really needed for something this simple?
It might be obvious to a US native, but it's hardly simple or obvious
to those of us outside America.
MI is a prime example, does it refer to Michigan, Missouri,
Mississippi or Minesota? The first two letters match all four.
If you come across this every day you probably know the answer, but I
just had to look it up again (Michigan) despite being caught out by
this just the other week!
--
Matt Brown
m...@mattb.net.nz
Mob +353 86 608 7117 www.mattb.net.nz
--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org