Given an array which contains n elements (n more than 1), is there an elegant way to refer to the element in a hash structure where each element is the key in sequence?
#!/usr/bin/perl
use warnings;
use strict;
use Data::Diver qw{ Dive };
my $hash = { a => { b => { z => 'HERE' } } };
my @foo = qw( a b z );
print Dive($hash, @foo);