Help for this page

Select Code to Download


  1. or download this
    sub uniq (@) {
        my %h;
        map { $h{$_}++ == 0 ? $_ : () } @_;
    }
    
  2. or download this
    sub bad_uniq {
        my %h;
        @h{@in} = ();
        return keys %h;
    }
    
  3. or download this
    use List::MoreUtils 'uniq';
    use Data::Dumper;
    ...
    @from_keys = ( 
                   'ARRAY(0x8153c28)'
                 );