in reply to chained hash slices?
@{ my $sub; my @refs = @h{@a}; do {$sub = sub { @refs ? $sub->(@_,@{po +p @refs}{@b}) : \@_ }}->() } [download]