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 ) { ... }
In reply to Re: If two variables match
by monarch
in thread If two variables match
by ivanatora
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |