Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: problems matching umlauts in env varsby borisz (Canon) |
on Jul 23, 2004 at 01:43 UTC ( [id://376772]=note: print w/replies, xml ) | Need Help?? |
Your problem is IMHO, that you locale is already in utf8. This means that your env var is in utf8 but your $testString is in latin1.
If this is the case you need to use Encode;.
And update the bytes from your environment to utf.
Boris
In Section
Seekers of Perl Wisdom
|
|