in reply to Re: closure clarity, please
in thread closure clarity, please
Conclusion: always define global subroutines
You have no choice. Named subroutines are always global. You're lying to yourself when you said "local f".
What is a strange behavior is that variables got stuck with a value,
Why do you think that creating a variable somewhere should replace a variable in some unrelated sub?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: closure clarity, please
by vitoco (Hermit) on Nov 24, 2009 at 20:16 UTC | |
by ikegami (Patriarch) on Nov 24, 2009 at 20:52 UTC | |
by JadeNB (Chaplain) on Nov 25, 2009 at 07:05 UTC | |
by ikegami (Patriarch) on Nov 25, 2009 at 07:09 UTC |