Code that computes what I'm trying to describe:
If not for a general list @b, how about if @b contains just a single element:my @list; for my $a (@a) { for my $b (@b) { push(@list, $h{$a}{$b}); } } # return @list;
@h{@a}{$x} ≡ map { $_->{$x} } @h{@a}
In reply to chained hash slices? by pc88mxer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |