in reply to SNMP using perl/cgi
In the first instance you want to change the error report on not being able to create the SNMP session to something like:
as a) you have just determined that $session is undef so you can't call a method on it and b) the method call wouldn't be interpolated in a string anyway as you are seeing. $error here is returned by session and has a meaningful value if the session creation failed.print ("Err Creation Session Obj: $error ");
/J\
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: SNMP using perl/cgi
by msk_0984 (Friar) on Aug 14, 2006 at 09:29 UTC | |
by gellyfish (Monsignor) on Aug 14, 2006 at 10:44 UTC | |
by idsfa (Vicar) on Aug 14, 2006 at 14:46 UTC |