in reply to Why can't I declare Net::SNMP varbinds dynamically

if it's any help, I'm getting the following error:
Error sending trap: Unknown ASN.1 type [INTEGER]
when I try to set $type = "INTEGER";