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
    Got one, missed one. The provided example value was an FQDN and contains dots. ;)

      Nice catch. Thanks :)

      Thanks Thomas, your trick worked. :)

Re^3: Perl IF Issue
by intoperl (Acolyte) on Aug 20, 2015 at 16:38 UTC

    Thanks Stevieb, your trick worked. Great Help:)