in reply to Dynamically building a hash of hashes

You're storing %hash in scalar context in the other hash, instead of storing a reference to it:
$container{ATTRIBUTES} = %attrs; # should be $container{ATTRIBUTES} = \%attrs;
That will make your de-referencing code (which currently says "1/8" isn't a valid hash reference) work.

japhy -- Perl and Regex Hacker

Replies are listed 'Best First'.
Re: Re: Dynamically building a hash of hashes
by willdooUK (Beadle) on Jul 12, 2001 at 16:14 UTC
    Fantastic!

    That's the kind of answer I like (just one little character and its fixed).
    Interestingly enough, the new hash has also been re-ordered...

    willdooUK
    --------------
    "Home is a castle you built in my mind; I'm home anywhere, anytime."
    Donny Hathaway