in reply to manipulating call stack
1. Try goto &SuperClass::bar; instead - but make sure @_ includes the object/class reference as the first argument. See goto
2. Do eval { $self->SUPER::foo(@_) }; carp $@ if $@
update: it occurs to me that whole idea of carp & croak is wrong and that the only really useful thing to do is to print a complete stack trace (like confess does) - i.e. use Carp 'verbose' in your module.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: manipulating call stack
by perrin (Chancellor) on Nov 07, 2007 at 04:21 UTC | |
by Joost (Canon) on Nov 07, 2007 at 12:19 UTC |