in reply to Multi Dimensional Hashes

If $returnedData is holding a reference to a hash, you can get the keys of the outer hash by using keys %$returnedData. I'm not sure about the inner hashes, but I think that you could use keys %$returnedData->{..}.

update: sorry, other replies came in while I was typing, that keeps happening to me.

Replies are listed 'Best First'.
Re^2: Multi Dimensional Hashes
by Roy Johnson (Monsignor) on Jun 07, 2005 at 03:22 UTC
    I think that you could use keys %$returnedData->{..}
    Not quite. The rule is that it's sigil followed by block returning reference of the appropriate type, but the braces can be left off iff the reference is a simple scalar variable. So you can do keys %$returnedData, but you'd need the braces for keys %{$returnedData->{...}}. Otherwise, it would parse as (keys %$returnedData)->{...}, which is nonsense.

    Caution: Contents may have been coded under pressure.
      So would I be correct if I said that the %{} around $returnedData->{..} is getting the hash inside of $returnedData->{..}?

        I wouldn't word it exactly that way, but I think you have the right idea.

        the lowliest monk