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-
In reply to Re: My ping should fail but does not
by robartes
in thread My ping should fail but does not
by mike at rcn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |