Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: using map to generate a hash of hash

by thraxil (Prior)
on Nov 07, 2002 at 14:27 UTC ( #211074=note: print w/ replies, xml ) Need Help??


in reply to using map to generate a hash of hash

But I don't understand how to take my 4 values and dump them in my hash, since map goes on 1 element of the list at a time....

that's about right. someone clever might be able to come up with a way to do what you want using map, but really that's the wrong tool for the job. a simple for loop would work much better and probably be clearer.

anders pearson


Comment on Re: using map to generate a hash of hash
Re: Re: using map to generate a hash of hash
by Sihal (Pilgrim) on Nov 07, 2002 at 14:31 UTC
    Well, I'm aware that I can do that more easily using a loop but I'm very curious to find out if and how this can be solved with map.
Re: Re: using map to generate a hash of hash
by Sihal (Pilgrim) on Nov 07, 2002 at 15:34 UTC
    I'm sorry but an emergency is knocking on the door; so I can't reply to jdporter and dingus right now
    However both of your posts are very interesting to me, I'll reply ASAP

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2015-07-02 04:30 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 (27 votes), past polls