Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Net::Ping Responseby set_uk (Pilgrim) |
on Oct 21, 2003 at 15:18 UTC ( [id://300946]=perlquestion: print w/replies, xml ) | Need Help?? |
set_uk has asked for the wisdom of the Perl Monks concerning the following question:
I would like to know what the meanings of the default timeout and timeout options mean in relation to Net::Ping.
This may seem like a dumb question but depending on what they are set to the response time of the ping is affected. If set to 1 I get a reponse of .15 from the following script. If set to 5 I get a response of 4. Shouldn't the way it work be - if we get a response then continue as soon as we get it?? I also find that this bears no relation to the ms response I get from the command line ping utility. Is this because Net::Ping is timing the perl code and perl is slower than the os binary?
Back to
Seekers of Perl Wisdom
|
|