in reply to What is the safest way to find out whether a hash key points to a scalar or a hash reference?

What is the recommended way to find out whether a hash key points to a scalar or a hash reference?

The ref function.

Cheers, Sören

Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)

  • Comment on Re: What is the safest way to find out whether a hash key points to a scalar or a hash reference?