You need to create boundaries to get an exact match when using that syntax:
if($SRVCHX =~ m/^$HOSTNME$/i)
or else things like "one" =~ /on/i; will match.
In reply to Re^2: Perl IF Issue
by stevieb
in thread Perl IF Issue
by intoperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |