On Mon, 2007-02-26 at 11:54 -0600, jm wrote:
> is there a function, module, script, etc. that converts all uppercase to
> proper mixed case.  this particular need is for an address list that is all
> uppercase
> 
> 1370 W 14TH ST
> ADA,OK
> 74837
> 
> i would like to convert it to
> 
> 1370 W. 14th St.
> Ada, OK
> 74837


There was a postal module written by a person in Australia somewhere on
cpan, cannot remember name and the details are at work.  This may go
somewhere along the road.

This sort of thing is almost exclusively a list based application and
the lists are built up by specialists over time.  There are usually huge
tables of spelling differences as well. for example

St, Strt, Street => Street, St

In your case I would have a table of full text states and state codes
and translate them to the actual codes afterwards.

Frankly the best way to deal with this is to build your input
application so that you know what is a state and what is a suburb, you
do have hope of doing something sensible then.

-- 
Ken Foskey
FOSS developer


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to