Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Fast Way to Return Unique Array of Array

by Zaxo (Archbishop)
on Sep 05, 2005 at 03:32 UTC ( [id://489131]=note: print w/replies, xml ) Need Help??


in reply to Fast Way to Return Unique Array of Array

The array references in @AoA are to four distinct locations, so they are all unique, even though their contents may be equal.

We've shown you a bunch of ways to get uniqueness, mostly having to do with hash keys. You can form a suitable key from one of these array references with join ',', @{$AoA[$idx]}.

After Compline,
Zaxo

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-03-29 04:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found