in reply to Re^4: hash references
in thread hash references

So, did you read the error message? If yes, you'd know that what you thought was an array ref really is a string. So, read up on how to create array references - perlreftut, perllol.