but it doesn't work. AGAIN the only thing that works isuse strict; my $var1 = "a+b"; my $var2 = "a\+b"; if ($var1 =~ /$var2/) { print "hey it matches \n"; } print "hey here \n";
please explain Waris$var2 = "a\\+b";
In reply to Re: Re: matching the + character
by jalebie
in thread matching the + character
by jalebie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |