I haven't tried but I expect passing it as a reference instead of letting it be flattened out into a list and copied into a new hash should do.
In reply to Re: having a hash maintain order when passed to a sub
by Your Mother
in thread having a hash maintain order when passed to a sub
by metaperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |