in reply to Re: Hash of Hashes, referencing, dereferencing and Net::SNMP
in thread Hash of Hashes, referencing, dereferencing and Net::SNMP
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'; }
|
|---|