Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: in_array and skipping foreach

by jbrugger (Parson)
on Apr 13, 2005 at 14:43 UTC ( #447428=note: print w/replies, xml ) Need Help??


in reply to Re^2: in_array and skipping foreach
in thread in_array and skipping foreach

Isn't it faster to create a lookuptable next to your array? The value in the array will be the key in the lookup table (hash) with the value 0 or 1.

"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.

Replies are listed 'Best First'.
Re^4: in_array and skipping foreach
by VSarkiss (Monsignor) on Apr 13, 2005 at 14:59 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2023-06-03 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (12 votes). Check out past polls.

    Notices?