Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: how to speed up dupe checking of arrays

by oha (Friar)
on Jul 31, 2007 at 10:46 UTC ( #629793=note: print w/ replies, xml ) Need Help??


in reply to Re^2: how to speed up dupe checking of arrays
in thread how to speed up dupe checking of arrays

you already have them in array.

$seen{"$ele0;$ele1;$file_data"}++;
then if you need the data you can, for example:
foreach (keys %seen) { .... }
and the value of the hash is the number of times the string is repeated

Oha


Comment on Re^3: how to speed up dupe checking of arrays
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2015-07-06 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls