in reply to Returning two hashes from a sub?

matija,
Actually you could return two hashes from the sub - the problem would be on the receiving end. It would not know where to stop slurping. There are two ways to be lazy.

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~R