http://www.perlmonks.org?node_id=998050


in reply to $a <=> $b

truthseeker66:

Inside the body of the sort block, $a and $b refer to the items being compared. If you use $c and $d, sort isn't going to do what you want it to do.

...roboticus

When your only tool is a hammer, all problems look like your thumb.