my @slice = map { $ManagerInCharge{$month}{$_} } ( keys %{$ManagerInCharge{$month}} );
be written more simply as:
my @slice = values %{$ManagerInCharge{$month}};
In reply to Re^2: Extracting a list of keys from a multi-dimensional hash.
by Anonymous Monk
in thread Extracting a list of keys from a multi-dimensional hash.
by PerlKitten
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |