those errors "HASH(0x101254f4)" is telling you the variable your printing is realy a hash.
"If a reference is used in a context where a string is expected, then the ref function is called automatically to produce the expected string, and a unique hexadecimal value (the internal memory address of the thing being referred to) is appended. That means that printing out a reference:" - Bless My Referents