Please allow me to rewrite your examples in a way that maintains rough equivalence whilst hopefully making the differences more apparent.
{ my $a = "MIN.(NERR_VOL2)"; my $b = $a; print "matches" if $a =~ m/$b/; }
{ my $a = "MIN.(NERR_VOL2)"; my $b = $a; print "equals" if $a eq $b; }
In reply to Re: Matching quoted variables. Cant make it work..
by Anonymous Monk
in thread Matching quoted variables. Cant make it work..
by johntweed
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |