but that's one of the most important things to be familiar with when dealing with sorting in my opinion. Especially the <=> and cmp operators.
Only those. Again, Perl makes no guarantee as to what the others return. It's definitely not important to be familiar with what they return as they can return anything true and anything false. In fact, they don't always return the values you think they return.
I'd probably choose using the >0 test.
Same exact problem as negation.
In reply to Re^4: Complex conditional sort
by ikegami
in thread Complex conditional sort
by Zhris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |