Re: Trouble with variable persistance
Re: Trouble with variable persistance
- Subject: Re: Trouble with variable persistance
- From: Ian Mantripp <email@hidden>
- Date: Fri, 01 Jun 2001 14:55:53 +0200
on 01/06/01 10:56 AM, Romulus Barabas wrote:
>
I have to declare a, b, c as
>
global variables at the beginning of the script, otherwise subroutines won't
>
be able to do work on them and pass them on.
You don't have to declare variables as global or property, you can pass
local variables as parameters to your subroutine.
If you want to use globals or properties and don't want persistance you can
reset them when your script ends or using the "on quit" handler.
Ian