You need to use the =~ notation to check the regex.
if ($test =~ /yes/i)
The eq operator is the string comparison operator. You can use it to match a string exactly.
HTH
In reply to Re: Case insensitive string compare
by pzbagel
in thread Case insensitive string compare
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |