|
The ASN.1 type "names" are exported as functions, not strings, by the Net::SNMP module. The functions return a numeric value representing the type. In your example you are passing a string to the "-varbindlist" when it expects a numeric value. What you need to do is execute the function named "OCTET_STRING" by doing something like:
$type = 'OCTET_STRING';
$objtype = &{$type}();
|