Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Quicksort problem

by Khen1950fx (Canon)
on Nov 22, 2011 at 09:44 UTC ( #939406=note: print w/ replies, xml ) Need Help??


in reply to Quicksort problem

The lazy way:

#!/usr/bin/perl -slw use strict; use warnings; use Tie::Quicksort::Lazy TRIVIAL => 2; my @end = qw/ 3 2 6 5 4 /; my @sorted_input = sort @end; tie my @sorted, 'Tie::Quicksort::Lazy', @end; while (@sorted) { my $this = shift @sorted; print $this; }


Comment on Re: Quicksort problem
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939406]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2014-08-29 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (275 votes), past polls