in reply to RE: (Guildenstern) RE: Re: Can't access hash of hashes.
in thread Can't access hash of hashes.

Shoot. So you mean that if I have my $a = \@b;, @{...} is basically useless? I understand that keys expects a hash. Does %{...} create an anonymous hash reference out of whatever's in the braces?

Guildenstern
Negaterd character class uber alles!

Replies are listed 'Best First'.
RE: (Guildenstern) RE: Can't access hash of hashes.
by swiftone (Curate) on Sep 07, 2000 at 20:01 UTC
    $a=\@b;
    So $a is now a reference to a list. How do you access that list? @$a But of course, this kind of dereferencing can get confusing, easily typoed, etc. so you say: @{$a} It's all in perlref
RE: (Guildenstern) RE: Can't access hash of hashes.
by tye (Sage) on Sep 07, 2000 at 19:47 UTC

    No, @{$refToArray} is the way to get the whole array when given a reference to an array. It just isn't called "forcing a list context".

            - tye (but my friends call me "Tye")