Help for this page

Select Code to Download


  1. or download this
    my %tmp = map { $_ => 1} @foo;
    my @uniq_foo = sort keys %tmp;
    %tmp = map { $_ => 1} @bar;
    my @uniq_bar = sort keys %tmp;
    %tmp = map { $_ => 1} @baz;
    my @uniq_baz = sort keys %tmp;
    
  2. or download this
    use List::MoreUtils;
    
    my @uniq_foo = uniq @foo;
    my @uniq_bar = uniq @bar;
    my @uniq_baz = uniq @baz;