in reply to (my?) problem with re-blessed references(?)
It seems much more maintainable and inheritable this way. I also wonder about the need for a "new" method (i.e. constructor) in the QuotePlus class. It seems like it should just be inherited from the Quote class.if (ref $args eq "HASH") { while(my ($method, $value) = each %$args) { if (my $func = $self->can($method)) { $func->($self, $value); # Update: I think in this case (after # consulting in CB and in the docs # regarding lvalue subs) it should be: # $func->($self) = $value } } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: (my?) problem with re-blessed references(?)
by djantzen (Priest) on Dec 13, 2002 at 07:00 UTC | |
Re: Re: (my?) problem with re-blessed references(?)
by BrowserUk (Patriarch) on Dec 13, 2002 at 06:51 UTC | |
Beware can for attrs
by rir (Vicar) on Dec 13, 2002 at 21:59 UTC | |
by runrig (Abbot) on Dec 14, 2002 at 16:56 UTC | |
by adrianh (Chancellor) on Dec 14, 2002 at 19:11 UTC |