Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Foreign Postal Addresses

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

in reply to Foreign Postal Addresses

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!!

Comment on Re: Foreign Postal Addresses
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?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2015-05-25 16:24 GMT
Find Nodes?
    Voting Booth?

    In my home, the TV remote control is ...

    Results (487 votes), past polls