Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 meditating upon the Monastery: (11)
As of 2016-06-27 19:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (344 votes). Check out past polls.