in reply to Slice of Hash of Hash help please

If it's

@hash{...} = (...);

for a hash, it's

@{$hashref}{...} = (...);

for a hash ref. Or in this case,

@{ $h{TEST} }{"Dad", "Mom", "Kid", "Pet"} =("Mr", "Mrs", "baby", "none");

or

@{ $h{TEST} }{@desc} = ("Mr", "Mrs", "baby", "none");

Remember, a hash of hash is really a hash of references to hashes.

Replies are listed 'Best First'.
Re^2: Slice of Hash of Hash help please
by Snk1977 (Initiate) on Jan 14, 2009 at 19:12 UTC
    You guys are the best!
    thanks for this :)
    I've spent some time on the tutorials on perl.doc.perl.org and thought i was ok.
    thanks for the link kyle, i'll definately go through this in more detail, and thanks ikegami, i like your examples :)

    thanks again
    Snk1977