in reply to Split loop error with perl 5.8
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,
Matt
P.S. By 'reinvoke', I mean something along the lines of this (ugly):
#!/usr/bin/perl delete $ENV{LANG}; exec($0, @ARGV);
|
---|