Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: how to sort string in perl

by roboticus (Chancellor)
on Dec 05, 2012 at 11:41 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1007276]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-19 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found