In my opinion, the thing to do is return hashrefs, and use them directly. I don't see how laziness affects your decision on this either way, unless you don't want to type a few extra syntax characters. If that's the reason, I fear you've given in to the wrong kind of laziness...
That said, if you insist on using "real" hashes, then what you've got is probably the simplest and most straightforward way to do so. Why fight it? 8^)
In reply to Re: Returning two hashes from a sub?
by revdiablo
in thread Returning two hashes from a sub?
by matija
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |