Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Building a hash from file and getting wrong result.

by kcott (Archbishop)
on May 15, 2017 at 20:41 UTC ( [id://1190347]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach my $recid ( reverse sort %SeqOrders ) ...
    
  2. or download this
    $ perl -MData::Dump -e '%x = qw{a 1 b 2 c 3}; dd \%x; dd { reverse sor
    +t %x }'
    { a => 1, b => 2, c => 3 }
    { 2 => 1, a => 3, c => "b" }
    
  3. or download this
    my %rev_seq = reverse %SeqOrders;
    for my $recid (sort keys %rev_seq) {
        ...
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2024-04-25 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found