Class::Method::Cannot?

Ian Malpass ian at indecorous.com
Mon Apr 28 21:52:41 BST 2008


Abigail wrote:
> On Mon, Apr 28, 2008 at 06:04:44PM +0100, heno-fijw at xemaps.com wrote:
>> The way I'd do this is to import all the other subs apart from foo and
>> bar into your namespace. You could do this on demand with some AUTOLOAD
>> magic, which will continue to get called each time foo() and bar() are
>> called.
> 
> I think that would fail to work correctly if any of the imported methods
> uses SUPER; IIRC, I've written code that (ab)uses this.

Plus, you'd have to know which subs to import, rather than which ones to 
avoid.

Ian


More information about the london.pm mailing list