Is there a safe way to find out if a REF is to a hash-like object,
ie it is either a HASH or a HASH that has been blessed into objecthood?
Obviously one can check all the possible types returned from
ref ($item) and assume that anything else is a blessed hash. But then
if Larry adds a new standard type my code will break... And it's a bit
long to have a switch statement when all I want is
if (LookAndSmellsLikeAHashRef ($item)) {GladWeDidntStepInIt;}
ie it is either a HASH or a HASH that has been blessed into objecthood?
Obviously one can check all the possible types returned from
ref ($item) and assume that anything else is a blessed hash. But then
if Larry adds a new standard type my code will break... And it's a bit
long to have a switch statement when all I want is
if (LookAndSmellsLikeAHashRef ($item)) {GladWeDidntStepInIt;}