go ahead... be a heretic | |
PerlMonks |
Re: Argument isn't numeric in sort -- resolve or ignore?by davido (Cardinal) |
on Feb 26, 2016 at 00:17 UTC ( [id://1156157]=note: print w/replies, xml ) | Need Help?? |
Forget about those two lines for a moment. Why would your comparator return $a, or $b, or -1, 0, 1? The first and final returns will return the result of N <=> M, whereas all the other returns return the value being compared instead. That's got to be a bug. Dave
In Section
Seekers of Perl Wisdom
|
|