in reply to Re: Why do I get a "used only once" warning here?
in thread Why do I get a "used only once" warning here?
Indeed, the way you wrote it, it would work. In my original design, the variable would be in a different package, so neither
noruse vars qw(%MyApp::once);
would have worked, because package qualifications are not allowed in use vars and our; put actually I don't need to put once in its own package; I can simply have it in my current package, and this would make your solution indeed feasible.our %MyApp::once;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Why do I get a "used only once" warning here?
by AnomalousMonk (Archbishop) on Mar 16, 2009 at 19:11 UTC | |
by rovf (Priest) on Mar 17, 2009 at 07:52 UTC | |
by AnomalousMonk (Archbishop) on Mar 17, 2009 at 15:53 UTC |