Keep It Simple, Stupid | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
You have an easy-to-miss typo in the script.
my %args = ( hostname => "router", version = "1" );
should be
my %args = ( hostname => "router", version => "1" );
The typo has the effect of propogating an undefined value into the options being passed to NET::SNMP->session().
Compiling with -w would have kicked this out right away. Hold on there... This won't run at all. You must have made a typo when typing in the code. Please paste in the code you're running, rather than retyping it.
In reply to Re: using return to create a module object
by dws
|
|