Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Anyone know why I can't declare the TYPE dynamically
This is how I'm declaring my varbindI.E. my $type = 'INTEGER'
I had to use 'INTEGER' specificallyif (($Gen_ID == 2) || ($Gen_ID == 3)) { $trapvars[0] = "1.3.6.1.2.1.2.2.1.1"; $trapvars[1] = INTEGER; $trapvars[2] = $value[1]; $trapvars[3] = "1.3.6.1.2.1.2.2.1.1"; $trapvars[4] = INTEGER; $trapvars[5] = $value[2]; $trapvars[6] = "1.3.6.1.2.1.2.2.1.7"; $trapvars[7] = INTEGER; $trapvars[8] = $value[3]; $trapvars[9] = "1.3.6.1.2.1.2.2.1.8"; $trapvars[10] = INTEGER; $trapvars[11] = $value[4]; }
Any ideas?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why can't I declare Net::SNMP varbinds dynamically
by Kanji (Parson) on Feb 04, 2003 at 00:54 UTC | |
|
Re: Why can't I declare Net::SNMP varbinds dynamically
by Anonymous Monk on Feb 03, 2003 at 20:55 UTC |