Re: State variables



Torsten Schoenfeld wrote:
Not really.  If you put a block around a sub, you can declare a lexical
variable in that scope but outside the sub.  It will then behave like a
state variable:  ...

Awesome! I've wished for years to be able to do that--never thought of adding that extra block. Yeesh do I feel d-u-m-b.

Thanks Torsten!

<Joe



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]