Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Hash keys affect sorting

by 0xbeef (Hermit)
on Jul 07, 2006 at 22:00 UTC ( [id://559872]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    my $output = <<EOD;
    ...
    for my $rec (reverse sort {$a->[3] cmp $b->[3] || $a->[1] <=> $b->[1]}
    + @data) {
       print "Error ID: $rec->[0]   Time: $rec->[1]\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-19 06:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found