in reply to How do I access values in a hash by two different keys?

If you don't require random access, you can iterate over all the items without needing to use an index.

foreach my $item (values $config->{item}) { print $item->{destination_dir}; }