in reply to Re: Hash of hashes question
in thread Hash of hashes question

You forgot to remove one of the two braces on the right :-)
print "3", keys(%{$termservers{$­key}}), "\n"; should be this: print "3", keys(%{$termservers{$­key}), "\n";

Replies are listed 'Best First'.
Re: Re: Re: Hash of hashes question
by etcshadow (Priest) on Oct 22, 2003 at 17:25 UTC
    No. There are supposed to be two close-braces and one close-parenthesis. Let me spell it out:
    keys( # take the keys of a hash %{ # dereference a hashref $termservers{ # hash-table lookup $keys } # END hash-table lookup } # END hash dereference ) # END keys(

    ------------
    :Wq
    Not an editor command: Wq
      Sorry, obviously my mistake. Saw that immediately when I just looked at it again :-(
        No, that's cool. I actually should have spelled it out like that in my original reply... would have been more demonstrative of the issue to the original poster.

        ------------
        :Wq
        Not an editor command: Wq