Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939406]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2017-11-24 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (351 votes). Check out past polls.

    Notices?