should bewarn ("ERROR for $host: $error\n") unless (defined($session));
that way if $session is not defined, you warn and then move on to next $host.unless( $session ){ warn ("ERROR for $host: $error\n") ; next; }
In reply to Re: getuptime script
by Anonymous Monk
in thread getuptime script
by deepupower123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |