You are fetching an array, but storing it in a scalar. You probably want to use the
method. Keep in mind that you cannot simply push the array reference on to an array and hope to use it later, because as I understand it, that method reuses the same array reference on each fetch. In other words, you will get the same array many times when you try to dereference it.