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

Re: international case insensitive searched with Perl

by Khen1950fx (Canon)
on Oct 04, 2011 at 08:57 UTC ( #929473=note: print w/ replies, xml ) Need Help??


in reply to international case insensitive searched with Perl

On my Linux system, I get "no match". Evidently, Perl doesn't consider them a match because they aren't a match. For example:

#!perl -sl strict; warnings; binmode STDOUT, ':encoding(utf8)'; print my $str1 = "L\311GER"; print my $str2 = "l\351ger";
That's on 5.8.8; however, on 5.14x and above, Anonymous Monk's suggestion about use feature 'unicode_strings' worked for me.

Update: fixed typo.


Comment on Re: international case insensitive searched with Perl
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://929473]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (19)
As of 2015-07-31 14:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (278 votes), past polls