in reply to removing accent

See Re: Diacritic-Insensitive and Case-Insensitve Sorting for one way.

Replies are listed 'Best First'.
Re^2: removing accent
by fizbin (Chaplain) on Aug 23, 2005 at 02:57 UTC
    Ouch.

    I mean, okay, munging the name of the letter is a cute hack, but there's a much, much easier way if you've got the Unicode::Normalize module available to you - just ask for the NFD or NFKD of the string, and then do a regular expression substitution to eliminate combining marks: s/\pM//g

    -- @/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/; map{y/X_/\n /;print}map{pop@$_}@/for@/