in reply to Re: matching the + character
in thread matching the + character

I know that thats i even tried matching by setting
use strict; my $var1 = "a+b"; my $var2 = "a\+b"; if ($var1 =~ /$var2/) { print "hey it matches \n"; } print "hey here \n";
but it doesn't work. AGAIN the only thing that works is
$var2 = "a\\+b";
please explain Waris