Take the 2-minute tour ×  I am trying to match two things which
both are full of metacharacters that needs to be used as
'Literal' in my match pattern. \Q is suppose to quote all
metacharacter in a string until \E...but it doesn't work.  Whats
up with that?  this is the line that gives me trouble : if
(/\Q$prev\E/ !~ /\Q$ww[0]\E/) {  share|improve this question You
can't compare two regular expressions like that. Could you post
more of your code and clarify what you are trying to do? – 
Mattrition Feb 28 '12 at 16:39 What do you mean by "it doesn't
work"? Do you want $prev and $ww[0] to be interpolated or don't
you? –  reinierpost Feb 28 '12 at 16:40 Use
perldoc.perl.org/warnings.html. –  toolic Feb 28 '12 at 16:42
What makes you think that the metaquoting isn't happening? You
might want to see Understand the order of operations in double
quoted contexts for some ways you can explore that. –  brian d
foy Feb 29 '12 at 2:04  2 Answers 2  Absent the use of =~ or !~,
is short for  $_ =~ m/.../    is short for