Chj::Destructor
use Chj::Destructor; my $z=0; { my $x= ["foo", Destructor { $z++ }]; } is $z, 1;
Util to help debug or test memory deallocation.
End.pm, but that one does not type-check the destructor argument early, nor does it localize error variables in its DESTROY method.
This is alpha software! Read the status section in the package README or on the website.
To install FunctionalPerl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FunctionalPerl
CPAN shell
perl -MCPAN -e shell install FunctionalPerl
For more information on module installation, please visit the detailed CPAN module installation guide.