Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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.

Replies are listed 'Best First'.
Re^4: Checking if hash value exists without implicitly defining it
by choroba (Chancellor) 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 scrutinizing the Monastery: (8)
As of 2016-09-26 13:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (478 votes). Check out past polls.