in reply to Foreign Postal Addresses

Update:
chromatic was nice enough to point out the correct module in a /msg to me.

The module I was looking for is Lingua::EN::AddressParse .

I overlooked it in my search of the CPAN. Thanks for helping me out chromatic.

Get Strong Together!!

Replies are listed 'Best First'.
Re: Re: Foreign Postal Addresses
by Elliott (Pilgrim) on Oct 10, 2001 at 19:16 UTC
    Not exactly a Perl thing, but I beg you (everyone, not just Chromatic), if you are collecting addresses online, to consider how different nationalities use words to describe different parts of an address. For example:
    • most non-Americans have no idea what a zip code is.
    • the word "city" hasa completely different meaning in the UK from in the US. (When I am asked for my "city" my response is "I don't live in a city".)
    Also don't put in validation that will exclude non-US addresses e.g.
    • zip code validation
    • state abbreviation validation
    • US phone number validation.
    Just because it can be done doesn't mean you have to do it!