logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Exporter::AutoClean - export instant functions available at compile time only

Author

       Daisuke Murase <typester@cpan.org>

Description

       This is a simple wrapper module of B::Hooks::EndOfScope, allows you to export instant functions that is
       only available at compile time.

Method

Exporter::AutoClean->export($package,%export_functions);
           Exporter::AutoClean->export(
               $caller,
               function_name1 => sub { # code },
               function_name2 => \&code,
               :
           );

       Export instant functions described %export_functions to $package.  These functions are automatically
       removed when compile time is done.

Name

       Exporter::AutoClean - export instant functions available at compile time only

See Also

       B::Hooks::EndOfScope, namespace::autoclean.

Synopsis

           use Exporter::AutoClean;

           sub import {
               my $caller = caller;
               Exporter::AutoClean->export( $caller, sub_name => sub { # code... } );
           }

See Also