The answer cog provided is correct. The general rule is that array and hash values can only be scalars. You have a hash reference, which is already a scalar. Thus, you can insert it directly in as the hash value.
Comment on Re: Better way to add refs to an array or hash?