in reply to Re^2: How to avoid closures and memory leaks.
in thread How to avoid closures and memory leaks.
This is less an issue of closures and more an issue of you not understanding the difference between global variables (use vars) and lexical variables (my). See Coping With Scoping for a good explanation of these things.
Basically, what you declare with use vars are global variable names, and these have no issues with closures, because anyone can get at a global variable as long as they know the name.
|
|---|