##Solution for one hash key my @unique = do { my %seen; grep { !$seen{$_->{name}}++ } @students};