perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Perrin Harkins" <per...@elem.com>
Subject Re: header issues etc...
Date Wed, 04 Jul 2007 02:37:26 GMT
On 7/3/07, Jonathan Vanasco <jvanasco@2xlp.com> wrote:
> i prefer storing them as class variables and using a public method to
> provide access
>
> ie:
>
>         package myfactory;
>         my $object= object->new();
>         sub get_object { return $object ;}

Using closures just makes it more confusing.  Class variables are
usually implemented as globals, i.e. our $object, not my $object.

- Perrin

Mime
View raw message