Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Sorting a "tuple" by the second value

by johngg (Abbot)
on Apr 09, 2012 at 12:22 UTC ( #964115=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    knoppix@Microknoppix:~$ cat spw964070.in
    abc peter
    ...
    abc peter
    ghi zak
    knoppix@Microknoppix:~$ 
    
  2. or download this
        ...
        return \ @links;
    ...
        my $refToLinks = get_links();
        my @sorted_links = sort { $a->[1] cmp $b->[1] } @$refToLinks;
        ...
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (15)
As of 2014-07-30 12:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (231 votes), past polls