Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.

Re: Re: Re: Re: Merging hashes

by hotshot (Prior)
on Sep 10, 2002 at 12:35 UTC ( #196643=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Re: Merging hashes
in thread Merging hashes

but if I don't work with references, and do something like:
$hash{red}{blue} = 1; $hash{red}{green} = 1;
I get;
%hash = ( red => ( blue => 1, green => 1, ), );
I want that to happen with references too.


Replies are listed 'Best First'.
Re(5): Merging hashes
by shotgunefx (Parson) on Sep 10, 2002 at 12:49 UTC
    What I meant by "what are you trying to do?" I meant what is the problem you are trying to solve.

    Merging hashes recursively is possible but I think you might be better suited with a different data structure. Maybe I'm wrong but I can't see why you would need to do that.


    "To be civilized is to deny one's nature."

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2023-09-22 01:58 GMT
Find Nodes?
    Voting Booth?

    No recent polls found