in reply to Re^2: SUPER in OOPerl is dumped with $self
in thread SUPER in OOPerl is dumped with $self
My opinion is that it is not possible in your example, but you require something not compliant with OO.
I see only this way:
Update: Or, to allow unsetting of parent:sub parent { my($self, $parent) = @_; $$self{parent} = $parent if defined $parent; return $$self{parent} }
sub parent { my($self, $parent) = @_; $$self{parent} = $parent if 1 < @_; return $$self{parent} }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: SUPER in OOPerl is dumped with $self
by atemon (Chaplain) on Jul 03, 2007 at 12:42 UTC | |
by pajout (Curate) on Jul 03, 2007 at 14:24 UTC | |
by dsheroh (Monsignor) on Jul 03, 2007 at 16:31 UTC | |
by dsheroh (Monsignor) on Jul 03, 2007 at 20:10 UTC |