You will have to break the statement down into two parts:results_table->{$$group}}->{$$site_name}->{sysobjid}="unknown; results_table->{$$group}}->{$$site_name}->{snmp_status}="NOT OK";
If you want to put the convenience back then use a fake loop to avoid the repetition:
for ($results_table->{$$group}{$$site_name}) { $_->{sysobjid} = 'unknown'; $_->{snmp_status} = 'NOT OK'; }
In reply to Re^2: Hash of Hashes, referencing, dereferencing and Net::SNMP
by Smylers
in thread Hash of Hashes, referencing, dereferencing and Net::SNMP
by smullis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |