On Thu, Dec 28, 2000 at 03:43:21PM -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.
> 

If someone wants to play with such ideas there's Perl 5.7 which has a
new mergesort as the incore sorting algorithm, while Perl 5.6 and before
used quicksort.

> -- 
> John Porter
> 
> What would Gabrielle do?

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Reply via email to