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

Re^2: Comparing Hash's key to an <STDIN> and print it's corresponding value

by xxArwaxx (Novice)
on Apr 07, 2011 at 13:04 UTC ( [id://898042]=note: print w/replies, xml ) Need Help??


in reply to Re: Comparing Hash's key to an <STDIN> and print it's corresponding value
in thread Comparing Hash's key to an <STDIN> and print it's corresponding value

totally agree! both values are not needed, I forgot to remove them while modifying the same file to create different scenarios! I believe in your alternative solution, the if condition works the same as 'exist' the return value from that is 1 when the key is actually found, and 0 if not. hence, it would print the equivalent value for that particular key if it exists! correct me if I'm wrong! thanks for the reply my friend!
  • Comment on Re^2: Comparing Hash's key to an <STDIN> and print it's corresponding value

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 16:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found