Callback::CleanupDeclare callbacks that clean themselves up | |
Download |
Callback::Cleanup Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Yuval Kogman
- Publisher web site:
- http://search.cpan.org/~nobull/
Callback::Cleanup Tags
Callback::Cleanup Description
Declare callbacks that clean themselves up Callback::Cleanup is a Perl module to ceclare callbacks that clean themselves up.SYNOPSIS use Callback::Cleanup; my $anon_sub = callback { # this is the sub body } cleanup { # this is called on DESTROY } # or Callback::Cleanup->new( sub { }, # callback sub { }, # cleanup );This is a very simple module that provides syntactic sugar for callbacks that need to finalize somehow.Callbacks are very convenient APIs when they have no definite end of life. If an end of life behavior is required this helps keep the cleanup code and callback code together. Requirements: · Perl
Callback::Cleanup Related Software