in reply to hashing it out.

It sounds like you might be looking for this:
%oids = ( ); foreach my $oid ( sort keys %iface ) { $oids{$iface{$oid}} = `$snmpwalk $ip $community $oid`; };
Does that help?
-Jules K.