Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: short sorts

by GrandFather (Saint)
on Mar 28, 2012 at 10:12 UTC ( [id://962137]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    for my $sortType ('case rev desc', 'case desc', 'ignore') {
        print "$sortType:\n   ", join (', ', shortSorts($sortType, @unsort
    +ed_array)), "\n";
    }
    
  2. or download this
    case rev desc:
       yellow, Green, cyan, Blue, Red, magenta
    ...
       yellow, magenta, cyan, Red, Green, Blue
    ignore:
       Blue, cyan, Green, magenta, Red, yellow
    

Log In?
Username:
Password:

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

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

    No recent polls found