good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I was under the impression that it was quite easy to write a function in Perl which expects some of its arguments to be functions, and then generates a new function to return.
Yes, you can build closures which hold other closures. Every once in a while I run into some bizarre situation where that is really, really useful. Closures of closures can also be wickedly hard to debug.
In reply to Re: Re (tilly) 2: Why Closures?
by dws
|
|