Re: Replace string with list of strings via character changes

2009-04-12 Thread Dr.Ruud
Kelly Jones wrote: I want to ASCII-ify the geonames alternatenames table using iso-8859-1. Also try Text::Unidecode. -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Replace string with list of strings via character changes

2009-04-11 Thread Kelly Jones
Thanks, David. I figured out how to do this recursively. Hopefully the code beow will clarify my question, even though I no longer need an answer. sub translit { my($str) = @_; my($oth) = $str; my(@res); # obviously, this could be improved to not hardcode o->xy, a->uv if ($str=~/o/) {

RE: Replace string with list of strings via character changes

2009-04-10 Thread Wagner, David --- Senior Programmer Analyst --- CFS
> -Original Message- > From: Kelly Jones [mailto:kelly.terry.jo...@gmail.com] > Sent: Friday, April 10, 2009 13:33 > To: beginners@perl.org > Subject: Replace string with list of strings via character changes > > I want to replace all the o's in a string with x's or y's and all the > a's