my ($descr, $uptime); if (eval { ($descr, $uptime) = $snmp->get($vars); 1 }) { ... } else { warn $@; } [download]
In reply to Re: Perl SNMP Error Handling by choroba in thread Perl SNMP Error Handling by skunix