Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Foreign Postal Addresses

by aardvark (Pilgrim)
on Oct 10, 2001 at 04:28 UTC ( [id://117902]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://117902]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-19 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found