in reply to Re: hashing it out.
in thread hashing it out.
It seems possible that I could "hard code" it without using the foreach loop, but the values of the %iface hash will not be constant, so I really must keep the code flexible, if you know what I mean.foreach my $oid (sort keys(%iface)) { %oids = ("$iface{$oid}" => `$snmpwalk $ip $community $oid`); %oid2 = ("$iface{$oid}" => `$snmpwalk $ip $community $oid`); %oid3 = ("$iface{$oid}" => `$snmpwalk $ip $community $oid`); }
|
|---|