in reply to Re: Why do we need $a and $b to be special?
in thread Why do we need $a and $b to be special?
... 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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Why do we need $a and $b to be special?
by adrianh (Chancellor) on Aug 01, 2004 at 10:38 UTC | |
Re^3: Why do we need $a and $b to be special?
by ysth (Canon) on Aug 01, 2004 at 09:34 UTC |
In Section
Meditations