in reply to Re: Registry scripts using bless
in thread Registry scripts using bless
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. Thanksmy $counter; &do_something; sub do_something { $counter++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Registry scripts using bless
by perrin (Chancellor) on Nov 14, 2001 at 00:55 UTC |