perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Wiles <fr...@wiles.org>
Subject Re: Quick and Easy scoping question
Date Fri, 12 Aug 2005 17:08:17 GMT
On Fri, 12 Aug 2005 12:04:34 -0500
Boysenberry Payne <boysenberry@humaniteque.com> wrote:

> I a module written in an object orient syntax that does this:
> 
> sub new {
> 
> 	my $class = shift;
> 	my $this  = {};
> 	bless( $this, $class );
> 	$this->_init( @_ );
> 	
> 	return $this;
> }
> 
> Is $this considered Global (i.e. am I going to run into the scoping 
> issues
> of $this->{data} persisting for multiple users?)

  This is actually a Perl question and not a mod_perl specific one, but
  no you won't run into scoping problems. 

 ---------------------------------
   Frank Wiles <frank@wiles.org>
   http://www.wiles.org
 ---------------------------------


Mime
View raw message