in reply to Re^2: hash ref as member of class
in thread hash ref as member of class

thanks that makes sense. I initially tried %($self->{HREF}) w/ parens instead of curly braces. perl is confusing like that - you initalize a hash with parens, access and derefence with curly braces, etc.

Replies are listed 'Best First'.
Re^4: hash ref as member of class
by JavaFan (Canon) on Aug 11, 2009 at 21:34 UTC
    You do not initialize hashes with parens. You can, however, initialize a hash with a list, and if you do a list assignment, you may need parenthesis for parsing precedences. But those parens are there just for precedence - they carry no syntactical meaning. Had the assignment operator been a postfix one, the parenthesis wouldn't be there.