Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
more useful options
 
PerlMonks  

Re: hash confusion

by jimbojones (Friar)
on Jul 18, 2005 at 14:22 UTC ( [id://475841]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to hash confusion

if ( $hash{$1} eq $2 ) { print "$1 is in hash with a value of $2\n"; }
That's if the values of the hash are strings. Possibly you'd have to use == instead of eq if they are numbers. I'm not 100% sure based on your post, but it looks like the hash key and values have ":" and "-" in them.

- j

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://475841]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.