Thank you everyone for answering.
Yet another solution is to give a pre-tied hash reference to the function as another parameter. But I'll go with the suggestions given here :-)
In reply to follow-up
by Anonymous Monk
in thread Reference to hash tied with Tie::IxHash doesn't remember insertion order
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |