in reply to Getting values from hash

The ref() command will help you to find out what type of reference you are referring to.

Example:

$result = ['a','b','c','d']; print ref($result);

This will print as "ARRAY".