Do you know where your variables are? | |
PerlMonks |
Re: Subclassing and CGI::Prototypeby merlyn (Sage) |
on May 19, 2006 at 16:39 UTC ( [id://550537]=note: print w/replies, xml ) | Need Help?? |
The problem is that there's also "instance" data in the class that gets the "activate"... in this case, the CGI object ends up in your "My_Zero" class, which
is not in the inheritance path for One or Two, and so those pages don't have access to the CGI object.
I've thought about fixing that by forcing the CGI slot to always be located up in CGI::Prototype, but I have to think through that carefully to make sure that doesn't break some other assumption. -- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|