Help for this page

Select Code to Download


  1. or download this
    @students = (
    {
    ...
    },
    );
    
  2. or download this
    @uniq_students = (
    {
    ...
       college => "Harvard",
    },
    );
    
  3. or download this
    ##Solution for one hash key
    my @unique = do { my %seen; grep { !$seen{$_->{name}}++ } @students};