These examples are from code written almost a year ago. Migrating from registry scripts to handlers is a "rainy-day" project (we have a very small team and LOT of work on our plate - all new development is done with PerlHandlers but we don't have time to rewrite old code).
I was worried about the 'my' in particular because we all know the following is not good in mod_perl registry scripts:
my $counter;
&do_something;
sub do_something {
$counter++;
}
use vars '$counter' is needed to make this global... I was worried I would have to use vars '$self'
Since I'm using my $self = shift in the subroutines I figured things would be safe and wanted to double check with you folks.
Thanks |