Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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: (9)
As of 2014-10-20 21:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (92 votes), past polls