Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^4: Comparing Hash key with array

by packetstormer (Monk)
on Feb 02, 2012 at 17:43 UTC ( #951502=note: print w/replies, xml ) Need Help??


in reply to Re^3: Comparing Hash key with array
in thread Comparing Hash key with array

Excellent! Thanks, that works as I want.
It turns out my original code, albeit verbose, almost works when I change that "==" to "eq". One of those things were you can't see the wood for the trees!

Thanks for the tip regarding iterating through @lines. There will be an huge amount of data in there when it goes live.

Thanks again

Replies are listed 'Best First'.
Re^5: Comparing Hash key with array
by Riales (Hermit) on Feb 02, 2012 at 17:50 UTC
    Glad that worked for you! I just wanted to make sure you saw my edit--your code will run far faster if you iterate through @lines first.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2016-10-01 17:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (2 votes). Check out past polls.