There are many ways you could move forward from here:
if (uc $vord eq uc $nick) { ... }
The \Q .. \E escapes turn of the interpretation of all regular-expression metacharacters in-between them.if ($vord =~ /^\Q$nick\E$/i) { ... }
In reply to Re: If two variables match
by Corion
in thread If two variables match
by ivanatora
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |