kp2a has asked for the wisdom of the Perl Monks concerning the following question:
my debug outCan't use string ("0") as a HASH ref while "strict refs" in use at get +sysinfo.pm line 109.
Works OK several times, the fails later. The failed command printed at line 108 before execution line 109. Any ideas? Work around?100 getsnmp result 101 .1.3.6.1.2.1.1.1.0=>"router" 107 sysDescr=>"router" $$myresult{sysDescr}=router; 115 return 116 sysDescr=>router 100 getsnmp result 101 .1.3.6.1.4.1.14988.1.1.1.1.1.5.3=>"BroadbandVI_5PrNE" 101 .1.3.6.1.2.1.1.5.0=>"A" 107 mtssid=>"BroadbandVI_5PrNE" $$myresult{mtssid}=BroadbandVI_5PrNE; Can't use string ("0") as a HASH ref while "strict refs" in use at get +sysinfo.pm line 109.
[john@scan ~]$ uname -a Linux scan.ackley.net 2.6.23.9-85.fc8 #1 SMP Fri Dec 7 15:49:59 EST 20 +07 i686 i686 i386 GNU/Linux [john@scan ~]$ perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't use string ("0") as a HASH ref
by Corion (Patriarch) on Sep 28, 2008 at 16:07 UTC | |
by kp2a (Sexton) on Sep 28, 2008 at 18:33 UTC | |
by Corion (Patriarch) on Sep 28, 2008 at 18:46 UTC | |
by kp2a (Sexton) on Sep 28, 2008 at 22:47 UTC | |
by AnomalousMonk (Archbishop) on Sep 29, 2008 at 01:54 UTC | |
by pjotrik (Friar) on Sep 28, 2008 at 22:36 UTC | |
|
Re: Can't use string ("0") as a HASH ref
by FunkyMonk (Bishop) on Sep 28, 2008 at 16:07 UTC | |
|
Re: Can't use string ("0") as a HASH ref
by runrig (Abbot) on Sep 28, 2008 at 16:20 UTC |