Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: fastest way to compare two arrays

by krusty (Hermit)
on Apr 14, 2011 at 00:21 UTC ( #899316=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @hash{@range} = (1) x @range;  #guess I don't need to replicate now.
    delete @hash{@ports};
    @open = sort {$a <=> $b} keys %hash; 
    #seems to work
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2014-12-22 22:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (132 votes), past polls