<=> is a numeric equality operator. See perlop for details. $main::a and $main::b are special variables that sort uses internally. So the code block is a call-back subroutine that sort uses to compare the values of the incoming list.
In reply to Re^3: Sort the array
by jwkrahn
in thread Sort the array
by sandy_1028
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |