Just another Perl shrine | |
PerlMonks |
My ping should fail but does notby mike at rcn (Initiate) |
on Jun 02, 2004 at 18:50 UTC ( [id://359651]=perlquestion: print w/replies, xml ) | Need Help?? |
mike at rcn has asked for the wisdom of the Perl Monks concerning the following question:
Hi All: A newbie to Perl, I have been wrestling with Ping for a couple of days now, and have completely run out of ideas. In part of a process, I am pre-checking to ensure the remote servers are available, before modifying files and sending them to those servers. My unit test includes the following rows in my ini file: My code strips the DBSERVERn value down to just the servername and pings it. (The second one intentionally has a blank value and should, therefore, fail the ping.) BUT . . . both pings pass the test! Following is the relevant code within the loop through the DBSERVERn keys in the ini section.I'm using use Net::Ping;
############################## Following is the related output: Thanks in advance for your help!
Back to
Seekers of Perl Wisdom
|
|