Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Fast Way to Return Unique Array of Array

by pg (Canon)
on Sep 05, 2005 at 03:30 UTC ( [id://489130]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    use Data::Dumper;
    ...
        map { $h{$_}++ == 0 ? $_ : () } @_;
        print Dumper \%h;
    }
    
  2. or download this
    $VAR1 = {
              'ARRAY(0x224ff8)' => 1,
    ...
              'ARRAY(0x1875904)' => 1,
              'ARRAY(0x224ef0)' => 1
            };
    
  3. or download this
    use Data::Dumper;
    use List::MoreUtils qw(uniq);
    ...
    my @AoA = ($a, $a, $b, $b);
    my @uAoA = uniq(@AoA);
    print Dumper(\@uAoA);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://489130]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-16 14:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found