Help for this page

Select Code to Download


  1. or download this
    @images = ({Name,'a',Size,2},{Name,'b',Size,3},{Name,'c',Size,2},{Name
    +,'d',Size,3});
    
  2. or download this
    my @duplicates = grep{$c{$_->{Size}}++ && $c{$_->{Size}}>1}@images;
    
  3. or download this
    for (@duplicates)    {
        print join " ", values %$_, "\n";
    }