Help for this page

Select Code to Download


  1. or download this
    splice @$arr, --$i, 1
                if $seen{$arr->[ $i++]}++;
    
  2. or download this
    sub remove_dup {
        my @arr = (1,1); #,2, 1, 3, 1, 4, 3, 1);
    ...
        }
        print @arr, " ";
    }