Help for this page

Select Code to Download


  1. or download this
    my %temp;
    my @captured = grep { defined $temp{$_}++ } split / /, <DATA>;
    
  2. or download this
    my %temp;
    my @captured = grep { ++$temp{$_} == 2 } split / /, <DATA>;