Help for this page

Select Code to Download


  1. or download this
    my %unique;
    @unique{@values} = ();
    
    ...
        print $_, $/;
        delete $unique{$_};
    }
    
  2. or download this
    my %unique;
    for (@values) {
        next if exists $unique{$_};
        print $_, $/;
        $unique{$_}++;
    }