Help for this page

Select Code to Download


  1. or download this
            my @x = uniq 1, 1, 2, 2, 3, 5, 3, 4; # returns 1 2 3 5 4
            my $x = uniq 1, 1, 2, 2, 3, 5, 3, 4; # returns 5
    
  2. or download this
    use strict;
    use List::MoreUtils qw/uniq/;
    
    ...
    57
    2
    9