Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Conditional Sorting

by jdporter (Canon)
on May 11, 2007 at 05:31 UTC ( #614816=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict; use warnings;
    my @arr = ('foo','bar','qux','foo1','bar1','qux1');
    ...
    } 0 .. $#nodew;
    
    my @arr_sorted = @arr[ @sorted_node_indices ];
    
  2. or download this
    use strict; use warnings;
    my @arr = ('foo','bar','qux','foo1','bar1','qux1');
    ...
            sort { $edgew{$from}{$a} <=> $edgew{$from}{$b} }
            keys %{ $edgew{$from} };
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2014-09-22 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (188 votes), past polls