develooper Front page | perl.perl5.porters | Postings from May 2003

Re: [perl #22375] 'split'/'index' problem for utf8

Nicholas Clark
May 29, 2003 15:48
Re: [perl #22375] 'split'/'index' problem for utf8
Message ID:
On Thu, May 29, 2003 at 10:19:27PM -0000, Daniel Yacob wrote:

> I'm using Perl 5.8.0 on a Redhat 8 Linux:

The usual answer to that is "try running with LANG=C" (RedHat defaults
to utf8 locales which are causing trouble)
But your script doesn't look like that is the problem.
Annoyingly I can't replicate your described output on Debian with 5.8.0.

I see 2, (the "right" answer, if I understand things correctly) not 6
(what you see, and buggy)

Nicholas Clark Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About