in reply to Re: utf8, locale and regexp
in thread utf8, locale and regexp
does not work either. use encoding 'utf8'; seems enought to screw the regexp engine.#!/usr/bin/perl use strict; use utf8; use encoding 'utf8'; my $test = "État"; my $test2 = "É"; if ($test =~ /$test2/) {print "$test matches $test2\n"} else {print "d +oes not matches\n"}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: utf8, locale and regexp
by Joost (Canon) on Apr 10, 2007 at 15:51 UTC |