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); [download]
This will print as "ARRAY".