nosduh has asked for the wisdom of the Perl Monks concerning the following question:
$a="xxx^1.0"; $b="xxx^1.0 yyyy zzz"; if($b=~/\Q$a\E/) { print "worked\n"; } else { print "nope\n"; } run test: nope
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Escaping metacharacters
by tye (Sage) on Dec 12, 2002 at 21:26 UTC | |
by nosduh (Initiate) on Dec 17, 2002 at 20:06 UTC | |
|
Re: Escaping metacharacters
by Enlil (Parson) on Dec 12, 2002 at 21:20 UTC | |
|
Re: Escaping metacharacters
by logan (Curate) on Dec 12, 2002 at 21:20 UTC | |
by nosduh (Initiate) on Dec 17, 2002 at 19:53 UTC | |
|
Re: Escaping metacharacters
by BrowserUk (Patriarch) on Dec 12, 2002 at 21:15 UTC | |
|
Re: Escaping metacharacters
by gnu@perl (Pilgrim) on Dec 12, 2002 at 21:14 UTC |