perl-unicode

Re: perl5.8.0 crazy strings

2002-06-25 09:25:42

Can anyone reproduce this? I am on Linux Mandrake 8.2 and perl8.2.0

I assume you mean perl 5.8.0 RC2.

prints 'no match' when the following script (saved as utf-8) is
executed. Is it a bug or a feature? On perl5.6.1 works as expected.

It's a bug.  The "UTF-8-ness" of the substitute string wasn't
properly propagated to the target string.  I now fixed this.

use utf8;
$a = 'España';
$a =~ s/ñ/ñ/;
print $a =~ m/ñ/ ? 'match' : 'no match', "\n";

Gregor Chrupala

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

<Prev in Thread] Current Thread [Next in Thread>