Help for this page

Select Code to Download


  1. or download this
    my @a=(1 .. 2);
    my @b=(2 .. 3);
    my %c;
    @c{@a,@b}=(@a,@b);
    warn "Duplicates exist!" if scalar @c{@a,@b} != (@a+@b);
    
  2. or download this
    my @d=keys %c;