Just as an aside for the OP why your initial try was wrong: your %$self->{HREF} parses as (%{$self})->{'HREF'} because %$self is a complete term to which the -> deref operator is (unsuccessfully) applied. Using the curlies works kind of like specialized parens letting perl know that what you want to dereference is the hashref the expression $self->{HREF} contains.
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re^2: hash ref as member of class
by Fletch
in thread hash ref as member of class
by bob_dobalina
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |