At 03:43 PM 12/28/00 -0500, John Porter wrote:
>Dan Sugalski wrote:
> >
> >    use sort qw(radix_sort);
> >    sort \&radix_sort @data;
>
>Isn't that the slot where the comparison function goes?
>Maybe something more like this:
>
>use sort::radix_sort;
>sort @data; # magically uses radix_sort instead of default.

D'oh. Yeah, you're right. A lexically scoped pragma or a setting of some 
CORE::GLOBAL sub. (Probably one and the same, though we'd need a method to 
hoist things out a few levels of lexical scope for that to work...)

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to