in reply to Re: Net::SNMP::Interfaces how to print the error()
in thread Net::SNMP::Interfaces how to print the error()
O sorry, my mistake in the previous post.
$Net::SNMP::Interfaces::error _is_ also a variable, but it is only set when RaiseError is set to a false value (which is not the case here).
$Net::SNMP::Interfaces::error _is_ also a variable, but it is only set when RaiseError is set to a false value (which is not the case here).
So either
set RaiseError to a true value (like '1' or 'True') and let it die with the error message
or set RaiseError to a false value (like undef) and
then use your own die with $Net::SNMP::Interfaces::error.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Net::SNMP::Interfaces how to print the error()
by thanos1983 (Parson) on Jun 04, 2014 at 17:33 UTC |
In Section
Seekers of Perl Wisdom