in reply to Re: Multi Dimensional Hashes
in thread Multi Dimensional Hashes

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.

Replies are listed 'Best First'.
Re^3: Multi Dimensional Hashes
by joelnackman (Beadle) on Jun 07, 2005 at 03:35 UTC
    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