in reply to
Re^2: Usage of IO::Socket::PortState
I suspect your port from the file includes a newline character and thus the check is failing.
Comment on
Re^3: Usage of IO::Socket::PortState
In Section
Seekers of Perl Wisdom