If you want, blame merlyn. I originally wasn't going to release ReleaseAction. But he thought that it was an interesting module, noted how it made the core module SelectSaver trivial to implement, and encouraged me to release on CPAN. I think that if either of us had realized that it already existed, I wouldn't have released.
You're right that the two are very similar. Mine is more flexible though. I allow you to cancel the action before it happens. I allow you to pass arguments into the closure. (I don't document that very clearly though.) I give you an optional OO interface.
While I would not have released had I realized that the same module was out there already, at this point I see no harm in having both available. I'll update my module to mention End though.
In reply to Re^6: Garbage Collection and undef
by tilly
in thread Garbage Collection and undef
by Irinotecan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |