my $src = [ ... ]; my %dst; for (@$src) { my $id = delete( $_->{people_id} ); push @{ $dst{$id} }, $_; }
In reply to Re: remapping an arrayref of hashrefs to a hashref of array refs
by ikegami
in thread remapping an arrayref of hashrefs to a hashref of array refs
by metaperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |