Issue: should match but does not.I'm using a locale of LANG=fr_FR.UTF-8. It matches if I remove "use encoding 'UTF-8'" but then some of my UTF-8 CGI and CGI::FastTemplate web pages become wrong (latin1 chars are appearing).#!/usr/bin/perl use strict; use utf8; use locale; use encoding 'UTF-8'; use warnings; my $test = "État"; my $test2 = "É"; if ($test =~ /$test2/) {print "matches\n"} else {print "does not match +es\n"}
In reply to utf8, locale and regexp by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |