my $href; for $href (keys %pci_ids) { print "Vendor Id: $href:\n"; print("pci_ids{href}: ", ${$href}{devices}, "\n"); }