in reply to Why are closures cool?
There are already good examples of what you can do with closures posted so I wont give an example (aside from the others check out perltoot,perltootc for some ideas), but if you arent already familiar with the idea of anonymous subroutines/function pointers/coderefs then they are also well worth becoming aquainted with (think dispatch mechanisms and dynamic iterators).
BTW, id say a lot of perlers would include closures on their "funky things I like perl because of" list, right alongside regexes,map and grep. Have fun.
Yves / DeMerphq
--
When to use Prototypes?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why are closures cool?
by Aristotle (Chancellor) on Jan 12, 2002 at 18:57 UTC | |
by runrig (Abbot) on Jan 12, 2002 at 22:13 UTC | |
by Aristotle (Chancellor) on Jan 13, 2002 at 01:38 UTC | |
by tilly (Archbishop) on Jan 13, 2002 at 02:40 UTC | |
by demerphq (Chancellor) on Jan 14, 2002 at 18:35 UTC | |
| |
by Aristotle (Chancellor) on Jan 13, 2002 at 08:36 UTC | |
|