Why not something like
Untested.. -----unless ($^O =~ /WIN32/) { Net::Ping->new("tcp", 2); etcetera } else { Net::Ping->new("icmp"); etcetera }
In reply to Re: Sloppy, but simple
by AcidHawk
in thread net::ping not working for windows hosts
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |