in reply to Re: Is this logic correct? Maybe can be rewritten better?
in thread Is this logic correct? Maybe can be rewritten better?

That means the you, the OP, probably aren't using use strict. If you had, elsif( $hostmatch == 1 ) would have resulted in an error unless you declared $hostmatch twice. Please use use strict; use warnings; and address any resulting errors and warnings.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.