http://www.perlmonks.org?node_id=620875


in reply to seeking in hash data structure

use List::Util qw(reduce); my $item = reduce { $a->{$b} } $hash, @path_segments;