in reply to tying hashes and SUPER
On first glance, I'd guess that
might be better written as something likeeval qq{ sub $_ { notify($_); shift->SUPER::$_ } }
so that it's explict about passing arguments.eval qq{ sub $_ { my $self = shift; notify("$_"); $self->SUPER::$_ (@_); } }
Update: Nope, go with chromatic's approach.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: tying hashes and SUPER
by chromatic (Archbishop) on Apr 16, 2003 at 20:29 UTC | |
by particle (Vicar) on Apr 17, 2003 at 13:46 UTC | |
|
Re^2: tying hashes and SUPER
by tye (Sage) on Apr 16, 2003 at 20:34 UTC | |
|
Re^2: tying hashes and SUPER
by particle (Vicar) on Apr 16, 2003 at 20:25 UTC |