in reply to If two variables match
However if you want to see if one variable contains the value of another variable e.g.
..then you probably don't want the anchors in your regular expression..e.g.my $vord = "Something Very Long"; my $nick = "Very";
if ( $vord =~ m/\Q$nick\E/i ) { ... }
|
|---|