Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: something weird in this hash sorting

by johngg (Canon)
on Jan 15, 2009 at 11:56 UTC ( #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? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2021-11-28 19:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?