Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Ranges in case insensitive regexps in unicode mode

by december (Pilgrim)
on Jun 06, 2003 at 22:55 UTC ( #263877=note: print w/replies, xml ) Need Help??

in reply to Ranges in case insensitive regexps in unicode mode

# perl -Mutf8 -e 'print "b" =~ /[A-C]/i ? "true\n" : "false\n"' false # perl -v This is perl, v5.6.1 built for i386-linux -- # perl -Mutf8 -e 'print "b" =~ /[A-C]/i ? "true\n" : "false\n"' true # perl -v This is perl, v5.8.0 built for i386-openbsd

I advise you to update to perl 5.8.0, because I have noticed similar errors between utf and other charset conversions/comparisions functions in perl 5.6.1. Some things just don't seem to work as expected. I'm not an utf or perl expert, but 5.8.0 seems to be more consistent, so if you have to do a lot of utf/charset relevant things...


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://263877]
[Eily]: congrats Discipulus :)
[choroba]: I often can't log in to pause. But after it fails for the first time, everything works for the second time.
[cavac]: Ok, thanks for the information
[choroba]: Yes, tried now. Login didn't show the login window at all, timed out, but worked for the second time instantly.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (13)
As of 2017-02-22 09:08 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (325 votes). Check out past polls.