For the Win32 ping, you can add '> nul' (the equivalent of '> /dev/null') to give it the same behavior as the other OS's.
Also, you have it returning 0 if it finds "100% loss", but it will falsely report success if you feed it a host that doesn't exist, since the result of `ping` will be Unknown host foo.bar. (which doesn't contain "100% loss" in it).
In reply to Re: Net::Ping::External
by myocom
in thread Net::Ping::External
by Falkkin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |