The \Q and \E escape special characters in $str1, if there are any. The /i modifier gives you case-insensitivity.$str1 = $str2 if $str2 =~ /\Q$str1\E/i;
-- Mike
--
just,my${.02}
In reply to Re: Compare 2 string values
by thelenm
in thread Compare 2 string values
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |