Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://117902]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2018-04-21 12:51 GMT
Find Nodes?
    Voting Booth?