The stupid question is the question not asked | |
PerlMonks |
Re^6: setting PERL_PERTURB_KEYS & PERL_HASH_SEED in a perl fileby haukex (Archbishop) |
on Jul 18, 2016 at 13:21 UTC ( [id://1167966]=note: print w/replies, xml ) | Need Help?? |
Hi gravid, Yep, there's a better solution than messing with Perl's internals :-)
Always outputs:
Background: If the comparison of the values (<=>) shows they are equal it returns zero, so then the second part of the or expression is evaluated, comparing the keys. Update: See the multi-field sort in How do I sort an array by (anything)? That FAQ answer also references this article: Far More Than Everything You've Ever Wanted to Know About Sorting Hope this helps,
In Section
Seekers of Perl Wisdom
|
|