Pass hashref like this:
return \%dat;
On the caller side, receive it like this:
$dat = retrive->gather();
But better "use strict" in your code, and my your variables.
In reply to Re: Passing Hashes
by pg
in thread Passing Hashes
by ironcom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |