in reply to Passing Hashes
Pass hashref like this:
return \%dat; [download]
On the caller side, receive it like this:
$dat = retrive->gather(); [download]
But better "use strict" in your code, and my your variables.