Help for this page

Select Code to Download


  1. or download this
    $counts{$_}++ for @test;
    
  2. or download this
    for (@test) {$counts{$_}++}
    
  3. or download this
    @redundant = grep {++$counts{$_} > 1} @test;
    
  4. or download this
    @redundant = grep {++$counts{$_}==2} @test;