Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: something weird in this hash sorting

by johngg (Canon)
on Jan 15, 2009 at 11:56 UTC ( [id://736520]=note: print w/replies, xml ) Need Help??


in reply to something weird in this hash sorting

Put use Data::Dumper; at the top of your script and, after you have created your %name hash, put these lines

print Data::Dumper->Dump( [ \ %name ], [ qw{ *name } ] ); exit;

and see whether the contents of the hash are what you expected. Another thing, your hash is, apparently, %name but you sort keys (%final). Some discrepancy there!

I hope this helps you.

Cheers,

JohnGG

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-24 18:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found