<?xml version="1.0" encoding="windows-1252"?>
<node id="929445" title="Re: international case insensitive searched with Perl" created="2011-10-04 01:56:50" updated="2011-10-04 01:56:50">
<type id="11">
note</type>
<author id="198160">
CountZero</author>
<data>
<field name="doctext">
In my Strawberry Perl 5, version 12, subversion 1 (v5.12.1), it works, but only if I &lt;c&gt;use utf8;&lt;/c&gt;.&lt;p&gt;&lt;c&gt;use Modern::Perl;
use utf8;

my $string = 'LÉGER';
print $string =~ /léger/i ? 'matched' : 'no match';&lt;/c&gt;Prints "matched".
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-198160"&gt;
&lt;p&gt;CountZero&lt;/p&gt;&lt;p&gt;&lt;i&gt;A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity."&lt;/i&gt; - [http://www.canonical.org/~kragen/tao-of-programming.html|The Tao of Programming], 4.1 - Geoffrey James&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
929400</field>
<field name="parent_node">
929400</field>
</data>
</node>
