Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 perusing the Monastery: (3)
As of 2014-12-29 04:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (184 votes), past polls