... however, since 5.6.0, perl has supported having a named comparison routine with a $$ prototype to indicate that you want the elements to sort passed as parameters instead of as $a and $bI didn't know that. How would the $$ prototype be seen in a CODE ref? Would it still work?
I tend to avoid prototypes normally, as they don't do what you expect, and seem to be more trouble than they are worth.
--
I'm Not Just Another Perl Hacker
In reply to Re^2: Why do we need $a and $b to be special?
by rinceWind
in thread Why do we need $a and $b to be special?
by rinceWind
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |