http://www.perlmonks.org?node_id=1018759


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 (Cardinal) on Feb 14, 2013 at 17:44 UTC
    What is wrong with plain old exists?
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      Preferrable. Will update. Thank you.