On 7/3/07, Jonathan Vanasco <[EMAIL PROTECTED]> 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

Reply via email to