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

Re^2: selectall_hashref structure

by 0xbeef (Hermit)
on Dec 24, 2009 at 16:25 UTC ( #814256=note: print w/ replies, xml ) Need Help??


in reply to Re: selectall_hashref structure
in thread selectall_hashref structure

Thanks it does help, I was just wondering if there was any way to avoid having to use map or another transformation at all.

To clarify the original objective, it was to have a common hash structure between the function I mentioned and results from selectall_hashref.

I was trying to find a way to manipulate the selectall_hashref to provide a resulting hash as described that can be used as $$hash{$id}{$key} = $value.

Your code provides a valid solution albeit through a different approach - "modify the structure passed to the function to look like the result from the selectall hash", and should work just fine unless someone can come up with an even better solution.


Comment on Re^2: selectall_hashref structure
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (12)
As of 2014-09-22 09:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (186 votes), past polls