http://qs1969.pair.com?node_id=1077070


in reply to Difference in sort order between Solaris and Linux

$ENV{LANG} = 'en_US'; $ENV{LC_ALL} = 'en_US.ISO8859-1';

I think you need to put that into a BEGIN { ... } block, otherwise it won't be set by the time use locale; is running.