in reply to Trying to pass a hash ref to a module
you're getting an error because $info isn't a hash ref, it's an array ref with one element. try changing the square brackets in that line to curly brackets, and see what happens.
Update:
You know what... i'm an idiot, what i told you doesn't even make sense at all!