in reply to How do I test if a 'thing' is a hash (or array or scalar)?

If you have it in $foo, it's a scalar. It can't be an array or a hash, because Perl is strongly typed.

If you meant "how do I test whether a reference to {something} is a reference to a scalar/array/hash?", then look at the ref function.

Replies are listed 'Best First'.