in reply to Check for existance & definedness for Hash and Array references

I'm trying the following ways. ..

One of which you've already dismissed as not working. So what happens when you try the second way?

Also, you might consider fixing getHashRef() so that it doesn't return references to empty hashes.

What have you tried for arrays?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy
  • Comment on Re: Check for existance & definedness for Hash and Array references