http://www.perlmonks.org?node_id=714185

kp2a has asked for the wisdom of the Perl Monks concerning the following question:

Cannot see any reason for the following error message:
Can't use string ("0") as a HASH ref while "strict refs" in use at get +sysinfo.pm line 109.
my debug out
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.
Works OK several times, the fails later. The failed command printed at line 108 before execution line 109. Any ideas? Work around?
[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: