Just another Perl shrine | |
PerlMonks |
Re^4: Check if sort has changed order (eq)by Anonymous Monk |
on May 10, 2013 at 23:03 UTC ( [id://1033056]=note: print w/replies, xml ) | Need Help?? |
That won't work for whatever sort condition. Sure it will, its comparing memory addresses not data, so the sort condition is irrelevant; only relevant are how much ram you have and how you initialized the array; if the memory addresses aren't sequential before sorting, it won't work.
In Section
Seekers of Perl Wisdom
|
|