http://www.perlmonks.org?node_id=866337


in reply to Re^2: perllocale weirdness, bug, or...?
in thread perllocale weirdness, bug, or...?

Oh - I hadn't seen that contradiction that runs counter to the intuition that "strings comparing larger" should compare starting from the left. I'm not sure what locale you actually run under. Maybe somebody who has actual working experience with locales can tell from $ENV{LC_ALL} or $ENV{LC_COLLATE} or $ENV{LANG} (see perllocale) what the active locale for your system is and how it affects sorting.

I would still avoid locales, exactly because they introduce hard to track down behaviour.