|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: RegExp breaks in Perl 5.10by grinder (Bishop) |
| on Mar 06, 2008 at 20:24 UTC ( [id://672572]=note: print w/replies, xml ) | Need Help?? |
|
Hmm, I was sufficiently surprised by this behaviour (that I've not heard of before) that I went looking. First off, your code fragment is not much use, as it does not define what $R2 contains. So I went and looked at the source, and ripped the following out of its guts:
(Those \xnn characters really are Latin-1 characters, that's just a direct cut'n'paste from my shell introducing the artifact). And that runs just fine here, all the way up to "perl, v5.11.0 DEVEL33323 built for i386-freebsd-64int". So there's something else going on. Both "ución" and "uciones" match just fine. Perhaps the tester platforms are running in a different locale. To play it safe, I suggest you encode your program in UTF-8 and slap a use utf8 at the top and be done with it. At least I think that's the correct best practice. Thinking about encoding makes my head explode. • another intruder with the mooring in the heart of the Perl
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||