There's more than one way to do things | |
PerlMonks |
Re: unicode [A-F] equivalent?by ambrus (Abbot) |
on Mar 22, 2005 at 19:23 UTC ( [id://441585]=note: print w/replies, xml ) | Need Help?? |
If you use locale, then the string comparision operators (and the default sort block too) will sort by the current locale, as given by LC_COLLATE. For example, this code gives the correct order of the letters: o ó ö ő p. Thus, instead of a regular expression such as m/^[A-Fa-f]/, you could use a comparision like $_ ge "g". I don't know how you can do this with regular expressions. (Updated one typo.)
In Section
Seekers of Perl Wisdom
|
|