Help for this page

Select Code to Download


  1. or download this
    @duplicates = grep $seen{$_}++, @temp;
    
    # here we count how many times each duplicate appears
    ...
    
    @unique_duplicates = keys %seen;
    
  2. or download this
    $record=Entry->new();
    $record->id(1);
    $record->duplicate(0);
    $record->src("This is a duplicate.");
    
    push @records, $record;