Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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
Replies are listed 'Best First'.
Re^4: Checking if hash value exists without implicitly defining it
by choroba (Canon) 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 rifling through the Monastery: (21)
As of 2015-07-30 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls