in reply to SNMP OID Registration Error

Try:
$agent->register('test3', $reg_oid3, sub { $test->monitor(@_) });

Replies are listed 'Best First'.
Re^2: SNMP OID Registration Error
by PyrexKidd (Monk) on Sep 19, 2011 at 15:29 UTC

    You sir, deserve all of the up votes! This made my day. I've been banging my head on this for a little bit...

    I swear I tried this before and it didn't work... I think when I was attempting to create anonymous subroutines, I was not using the 'sub' keyword before my braces (thus not creating a subroutine).

    Thanks for your help!