Perl: the Markov chain saw | |
PerlMonks |
Re: Split loop error with perl 5.8by mojotoad (Monsignor) |
on Oct 11, 2004 at 21:14 UTC ( [id://398297]=note: print w/replies, xml ) | Need Help?? |
argathin has it right -- it's Red Hat's use of utf-8 by default. As you've noted, 'use bytes' fixes this within your script.
Another way around it is to unset the LANG environment variable (but for your script, you'd have to reinvoke with the new ENV setting). This is in case you're relying on external programs, such as the sort command, which sometimes break under the utf-8 setting.
Cheers, P.S. By 'reinvoke', I mean something along the lines of this (ugly):
In Section
Seekers of Perl Wisdom
|
|