31 May 2005 |
mugwump |
\Q disables pattern metacharacters, but not interpolation |
03:28 |
|
1 May 2009 |
mankash |
$rtr=\Q$snmpget .1.3.6.1.4.1.9.2.1.3.0\Q |
04:12 |
|
skids |
use quotes: $rtr="\Q$snmpget .1.3.6.1.4.1.9.2.1.3.0\Q" |
04:17 |
|
24 Aug 2009 |
b_jonas |
print"$_\Q$_\E\"\n"for"print\"\$_\\Q\$_\\E\\\"\\n\"for\"" |
20:20 |
|
16 Nov 2012 |
FROGGS |
there is basically a regex like /[\/\\]lib\Q$lib\E[\-\d\.]*\.($dlext[\d\.]*|so|dll)$/ |
12:46 |
|
2 Apr 2013 |
|
\Q and \E are gone too AFAIK |
19:40 |
|
7 Jun 2014 |
xfix |
\Q$variable\E was crazy. |
17:32 |
|
|
\Q is quotemeta. |
17:33 |
|
14 Oct 2014 |
FROGGS_ |
($found_dll) = find_file($ld, qr/[\/\\]lib\Q$lib\E[\-\d\.]*\.($dlext[\d\.]*|so|dll)$/); |
09:46 |
|
|
($found_lib) = find_file($ld, qr/[\/\\]lib\Q$lib\E[\-\d\.]*\.($dlext[\d\.]*|a|dll.a)$/); |
|
|
11 Jun 2015 |
geekosaur |
\Q$foo\E matches the contents of $foo literally |
16:24 |
|