The first is create the hashes outside of the sub and pass them into the sub by reference. There would be no need to return the references since the hashes would already be modified. Just start using them after the sub is finished.
The second is even lazier. Create the hashes outside of the sub but at a scope level the sub can see. Modify the hashes inside the sub so when it finishes - you can start using them.
Cheers - L~RIn reply to Re: Returning two hashes from a sub?
by Limbic~Region
in thread Returning two hashes from a sub?
by matija
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |