P is for Practical | |
PerlMonks |
Re^2: Regex helpby graff (Chancellor) |
on Jul 26, 2009 at 02:50 UTC ( [id://783251]=note: print w/replies, xml ) | Need Help?? |
Is that documented behaviour? Where?
Yes, in perlre, as follows: An unescaped "$" or "@" interpolates the corresponding variable, while escaping will cause the literal string "\$" to be matched. (Though in the version of the perlre man page I have installed, for perl 5.8.8, this sentence comes second in a paragraph that begins with: You cannot include a literal "$" or "@" within a "\Q" sequence." I can understand that some might consider this obscure.)
In Section
Seekers of Perl Wisdom
|
|