in reply to Re: Perl IF Issue
in thread Perl IF Issue
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl IF Issue
by Monk::Thomas (Friar) on Aug 20, 2015 at 16:17 UTC | |
by stevieb (Canon) on Aug 20, 2015 at 16:26 UTC | |
by intoperl (Acolyte) on Aug 20, 2015 at 16:37 UTC | |
|
Re^3: Perl IF Issue
by intoperl (Acolyte) on Aug 20, 2015 at 16:38 UTC |