List::GroupBy is a Perl module that takes a list of hash references and groups them by one or more of their keys.