Keep It Simple, Stupid | |
PerlMonks |
Re: \U, \E and friends interpolation in regex operatorsby l.frankline (Hermit) |
on Dec 14, 2005 at 04:15 UTC ( [id://516515]=note: print w/replies, xml ) | Need Help?? |
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:
Regards, Don't put off till tomorrow, what you can do today.
In Section
Seekers of Perl Wisdom
|
|