Hi,
$c and $d are not special package variables in sort function.
The sort function takes an optional code block, which lets you replace the default alphabetic comparison subroutine with your own. This comparison function is called each time sort has to compare two values. The values to compare are loaded into the special package variables $a and $b.
In reply to Re: sorting technique
by gopalr
in thread sorting technique
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |