in reply to Re: SUPER or NEXT from imported methods
in thread SUPER or NEXT from imported methods
That seems to work. I was hoping my imported symbol could make use of closure variables, but I guess I could just interpolate them into the eval.sub import { my $package = shift; my $methodname = shift; my $dest = caller; eval <<END package $package; sub $methodname { return shift->SUPER::blah(); }; 1; END }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: SUPER or NEXT from imported methods
by tilly (Archbishop) on Feb 21, 2009 at 02:04 UTC | |
by jsadusk (Acolyte) on Feb 21, 2009 at 03:35 UTC |