Alex Francis wrote:
> Confused. Does Plugme::guts inherit from ExtObj ? If so then it looks
> like, given you'll only ever have one $extobj, things will only work
> if Plugme::guts is the only class to inherit from ExtObj. Which would
> be weird.
>
Yeah, thought I hadn't outlined it properly. The $OrigObj is part of
another package that is importing the ExtObj package, effectively:-
package OrigObj;
use ExtObj;
my $OrigObj = {};
bless $OrigObj, OrigObj;
1;
The real thing is much more complicated (it's actually CGI::Application).
With $OrigObj->ExtObj->new_methods; some of the new_methods will want to
access $OrigObj.
My solution exports a new method to OrigObj that simply returns the new
ExtObj object after storing the reference to $OrigObj for retrieval later.
Hope that makes more sense?
Lyle
_______________________________________________
BristolBathPM mailing list
[email protected]
http://mailman.bristolbath.org/mailman/listinfo/bristolbathpm