Just another Perl shrine | |
PerlMonks |
Re^2: Why do we need $a and $b to be special?by rinceWind (Monsignor) |
on Aug 01, 2004 at 09:29 UTC ( [id://379042]=note: print w/replies, xml ) | Need Help?? |
... 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. --
In Section
Meditations
|
|