in reply to Re: Re: Re: Passing self from class to class?
in thread Passing self from class to class?
When people read
they expect that somesub is a legitimate object method, and not one that has been force-fed a reference to a class that is related only by way of common data members.sub somesub { my $self = shift;
If you want to simplify access to a single CGI object, hide it behind a singleton or make it a global. Globals can be misused, but they have their places.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^4: Passing self from class to class?
by Anonymous Monk on Aug 29, 2002 at 01:51 UTC |