I think you might actually be asking the wrong question..... however...
If you really want to do this one way would be to re-bless the object into SomeOtherClass before the call. However this is almost certainly evil unless you're building some kind of state-transition pattern.
More likely is that you want to setup some kind of has-a relation with a SomeOtherClass object and pass the object as an argument.
Can you give more information on what you want SomeClass and SomeOtherClass to do? What is the relationship between the classes (and CGI)? Why don't you have SomeSub as a method of SomeClass?
I suspect that once you've clarified this some kind of has-a of is-a relationship between SomeClass and SomeOtherClass will become obvious...
In reply to Re: Passing self from class to class?
by adrianh
in thread Passing self from class to class?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |