Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Sorting an array on two computed fields

by jesuashok (Curate)
on Dec 16, 2005 at 10:05 UTC ( #517195=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/local/bin/perl
    
    ...
    
    print "value :" , $_ , ":\n" foreach ( sort @array );
    
  2. or download this
    value :1-1:
    value :1-10:
    value :1-3:
    value :2-1:
    value :2-5:
    
  3. or download this
    value :1-1:
    value :1-3:
    value :1-10:
    value :2-1:
    value :2-5:
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2022-05-25 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (91 votes). Check out past polls.

    Notices?