Ugh... do you actually use that? I thought that was only an unintended side-effect of how scratchpads are implemented. Am I confused on that point?
I would use a named closure for emulating static vars
{ my $static; sub count { $static++ } }
Also, I think "use Foo;" is more analogous to "#include <Foo.h>" than "package Foo;" is.
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Re: Package-Level Variables
by sauoq
in thread Package-Level Variables
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |