Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Sorting an array on two computed fields

by jesuashok (Curate)
on Dec 16, 2005 at 10:05 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-25 07:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found