Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Sort over remaining part of array

by monkini (Initiate)
on Nov 12, 2013 at 09:37 UTC ( #1062160=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @AoA = (
               [ 0.5, "b1", "c0" ],
    ...
               [ 0.3, "b3", "c3" ],
               [ 0.6, "b3", "c4" ],
     );
    
  2. or download this
    my @sorted =  sort @AoA; #sort on $a
    my %seen = ();
    ...
            # sort remaining array, from now on... and proceed analyzing l
    +ine by line
        }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2020-08-05 01:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (35 votes). Check out past polls.

    Notices?