[-1] is a negative array index, which lets you count from the other end of an array. $array[-1] is the same as [reverse @array]->[0] or $array[$#array]
<=> is a comparison operator for numbers, similar to cmp for strings. (see perlop or the sort documentation)
In reply to Re^3: Printing a Hash Slice problem
by jhourcle
in thread Printing a Hash Slice problem
by monkfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |