P is for Practical | |
PerlMonks |
Re: Re (tilly) 2: Why Closures?by dws (Chancellor) |
on Apr 26, 2001 at 21:36 UTC ( [id://75836]=note: 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 Section
Meditations
|
|