Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: hash array

by grizzley (Chaplain)
on Oct 09, 2012 at 11:06 UTC ( #997978=note: print w/ replies, xml ) Need Help??


in reply to hash array

Please use <code> tags around your code.

And regarding your problem: @keys = keys %hash will put all keys from hash in the array. Duplicated entries are there possibly because in your hash you have key the same as value.


Comment on Re: hash array
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2015-07-04 11:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls