in reply to Clearing user defined variables
Is there a better way?
Yes it is called scoping your variables and avoiding/limiting the use of global vars. I am amazed you can get 3200 lines to work (presumably one long file) in a stable fashion using globals.
If you wanted to modify your program towards less globals one approach is to use a %globals hash that contains all your globals. When you want to 'reset' the sutem you just reset %globals.
cheers
tachyon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Clearing user defined variables
by matija (Priest) on Apr 13, 2004 at 07:31 UTC | |
by PodMaster (Abbot) on Apr 13, 2004 at 07:53 UTC | |
by tachyon (Chancellor) on Apr 13, 2004 at 08:09 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |