in reply to Need an $a and $b as in perl's sort routine
It's easy to local $_ before calling the sub, and with $_ everyone will know what you're doing.