XS::Framework::Manual::SVAPI::perl_destroy - XF::Framework at_perl_destroy() reference
void at_perl_destroy (const panda::function<void()>& f);
Sometimes you need to be notified, when Perl interpreter is about to be destroyed. This is needed when you captured some Perl structures and want to release them properly or invoke other clean-up functions.
This hook function is similar to END block of a perl module, but on C++ layer.
The added hook-functions are executed in the order they added (FIFO). Here is an example:
std::cout << "perl interpreter is about to be destoryed\n";
To install XS::Framework, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.