in reply to Re: static-like persistence of my variable due to trailing conditional
in thread static-like persistence of my variable due to trailing conditional
I'm not sure that quite works. In theory, on the first call, my $foo = "blah" should be run, then go out of scope at the end of the function call. So, if the declaration/assignment is not run on the second call, shouldn't $foo ||= "FOO" give us an error?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: static-like persistence of my variable due to trailing conditional
by Aristotle (Chancellor) on Jun 29, 2002 at 22:43 UTC | |
|
Re: Re: Re: static-like persistence of my variable due to trailing conditional
by mschout (Initiate) on Jun 30, 2002 at 04:54 UTC | |
by Aristotle (Chancellor) on Jun 30, 2002 at 17:45 UTC | |
by meonkeys (Chaplain) on Jun 30, 2002 at 17:17 UTC |