in reply to Re^2: 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.