On Fri, 2004-03-05 at 19:08, MJH wrote:
> use app::utility_class;
> my $var = new app::utility_class;
> .... do stuff...

If "do stuff" includes and subs that reference $var without it being
passed to them, you'll create a closure.  For example:

sub foo {
    $var->bar();
}

That will prevent it from going out of scope.

- Perrin


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to