Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Complex Sort - using varying numbers of parameters

by George_Sherston (Vicar)
on Jul 04, 2002 at 12:08 UTC ( #179436=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        for my $h (@Tree) {
            print "$_ " for @{$h->{Path}};
            print "\n";
        }
    
  2. or download this
    5 32 37
    5 32 38
    ...
    3 12 11 19
    5 32 35
    5 32 36
    
  3. or download this
    0 
    1 2 
    ...
    5 32 41 
    5 32 42 
    5 32 43
    
  4. or download this
        for (5..0) {
            @Tree = sort {
            $a->{Path}->[$_] <=> $b->{Path}->[$_]
        } @Tree;
        }
    
  5. or download this
        for my $page (@Tree) {
            my $Sort = 0;
    ...
        }
    
        @Tree = sort {$a->{Sort} <=> $b->{Sort}} @Tree;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://179436]
Approved by dwiz
Front-paged by broquaint
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (1)
As of 2021-08-04 06:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)








    Results (41 votes). Check out past polls.

    Notices?