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

Re^3: Checking if hash value exists without implicitly defining it

by Kenosis (Priest)
on Feb 14, 2013 at 17:42 UTC ( #1018759=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Checking if hash value exists without implicitly defining it
in thread Checking if hash value exists without implicitly defining it

My apologies, as it should be written as:

... if ( exists $Hash{$neededVal} and exists $Hash{$neededVal}{param1} and exists $Hash{$neededVal}{param1}{key1} ) { ...

Will correct the original...

Update: Replaced defined with exists. Thank you, choroba.


Comment on Re^3: Checking if hash value exists without implicitly defining it
Select or Download Code
Re^4: Checking if hash value exists without implicitly defining it
by choroba (Abbot) on Feb 14, 2013 at 17:44 UTC
    What is wrong with plain old exists?
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      Preferrable. Will update. Thank you.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2014-12-29 15:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (192 votes), past polls