in reply to Passing self from class to class?
If you change SomeClass to read
then you can writepackage SomeClass; use base qw(SomeOtherClass); ...
Doing this does not create a new instance of the CGI module. Methods (subroutines) from both SomeClass and SomeOtherClass both have access to the same instance of CGI.sub run { my $self = shift; $self->SomeSub(); }
|
|---|