Re: State variables
- From: Joe Smith <jes martnet com>
- To: gtk-perl-list gnome org
- Cc: Torsten Schoenfeld <kaffeetisch gmx de>
- Subject: Re: State variables
- Date: Thu, 04 May 2006 15:45:42 -0400
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]