Won't multiple simultaneous requests change the "our" variables unpredictably since they all have access to the symbol table?
On 7/3/07, Perrin Harkins <[EMAIL PROTECTED]> wrote:
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