in reply to Re^3: Complex hash?
in thread Complex hash?

Just to disambiguate a little: ref returns SCALAR for a reference to a scalar. For a simple scalar it returns undef.

Note too that ref returns the object type for an object so the range of strings that can be returned is essentially unlimited.


DWIM is Perl's answer to Gödel