in reply to Re: Check/set hash of hashes value
in thread Check/set hash of hashes value

Thanks Dave, so let me get this right - here, the value I was attempting to check if it was undef, I was effectively setting the value to undef !

Replies are listed 'Best First'.
Re^3: Check/set hash of hashes value
by davido (Cardinal) on Jun 24, 2013 at 17:43 UTC

    Just as you wouldn't use "=" to test equality (you would use "=="), you wouldn't use "undef" to test definedness, you would use "defined".

    undef will undefine its operand. defined will test its operand.


    Dave

Re^3: Check/set hash of hashes value
by kennethk (Abbot) on Jun 24, 2013 at 17:31 UTC
    Exactly. See undef, which is a wildly different function than defined.

    #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.