in reply to My ping should fail but does not
shows that if you call pingecho() with an empty host, it returns undef, which should fail your if.$ perl -MNet::Ping -MData::Dumper -e 'my $retval=pingecho("");print Du +mper(\$retval);' $VAR1 = \undef;
CU
Robartes-
|
|---|