Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: how to sort string in perl

by roboticus (Canon)
on Dec 05, 2012 at 11:41 UTC ( #1007276=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ cat bozosort.pl
    #!/usr/bin/perl
    ...
        next if grep { $list[$idx] > $_ } @list;
        say splice @list, $idx, 1;
    }
    
  2. or download this
    $ perl bozosort.pl
    0
    ...
    6
    7
    9
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2014-09-16 10:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (0 votes), past polls