On 7/3/07, Jonathan Vanasco < suppressed> 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
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.