"be consistent" | |
PerlMonks |
Re^2: Usage of IO::Socket::PortStateby perl_dedicted (Initiate) |
on Jun 19, 2015 at 21:42 UTC ( [id://1131209]=perlquestion: print w/replies, xml ) | Need Help?? |
perl_dedicted has asked for the wisdom of the Perl Monks concerning the following question:
Hi perl monks, I am a newbie in the forum. I was following the forum and today finally I became member of this fantastic forum. I was trying out the module "IO::Socket::PortState qw(check_ports);" It is perfectly working without reading a file: output is : "alive" and the text file contains: port1 = 8307 port2 = 15677 But when I want to read my ports from a file, results are for each port "dead", Here is the code: output is : port : 8307 dead I really don't get it. why the port 8307 (listening) is working with the previous script and not when I read all those ports from a file? Could you help me out from this issue? Thanks in advance
Back to
Seekers of Perl Wisdom
|
|