use List::Util qw(reduce); my $item = reduce { $a->{$b} } $hash, @path_segments; [download]
In reply to Re: seeking in hash data structure by bsb in thread seeking in hash data structure by Maze