Closures are cool. I've never had any trouble understanding lexical variables within some other block (like a sub). I guess I have never tried to declare a closure at file scope, so I've haven't learned to fear them. It wouldn't have worked for me (at file scope), before today, so I guess the timing is better this way. :-)
Thanks for sharing your knowledge...
Russ
In reply to RE:(2) Benchmark.pm's scoping behavior
by Russ
in thread Benchmark.pm's scoping behavior
by Russ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |