Hi,
when you store Escaping characters like \U, \E, \u and so on... in a scalar variable, avoid using single quote instead of double quote, because the regex can't recognise the Escaping characters. If you do like $var = '\utext' the regex will interpolate. here is an example. try this:
print my $var = "\utext"; "Text" =~ m/$var/ && print "matches\n";
Regards,
Franklin
Don't put off till tomorrow, what you can do today.
In reply to Re: \U, \E and friends interpolation in regex operators
by l.frankline
in thread \U, \E and friends interpolation in regex operators
by Hue-Bond
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |