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.

Hotshot

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.

    -Lee

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