in reply to Re: Perl IF Issue
in thread Perl IF Issue

Thanks Stevieb for your suggestion. Here how it looks like after i did what you told (when i keep the both the argurments same):

>tantra.zdr.moksha.com < >tantra.zdr.moksha.com<

Replies are listed 'Best First'.
Re^3: Perl IF Issue
by stevieb (Canon) on Aug 20, 2015 at 16:03 UTC

    Do a chomp $HOSTNME; prior to the if statement. That variable has an attached newline (\n) at the end if it.

    Update: See perldoc -f chomp to understand the purpose of chomp.

    -stevieb