You cannot include a literal "$" or "@" within a "\Q" sequence. An unescaped "$" or "@" interpolates the corresponding variable, while escaping will cause the literal string "\$" to be matched. You'll need to write something like "m/\Quser\E\@\Qhost/".
In reply to Re: Can I use Q and E to regex match the dollar sign?
by borisz
in thread Can I use Q and E to regex match the dollar sign?
by tphyahoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |