[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: header issues etc...


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 <suppressed> wrote:
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.