Exporter::AutoClean(3pm)

Exporter::AutoClean3pm

Export instant functions available at compile time only

Usage

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

Overview

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.

Releases

6 releases since Debian 8 (Jessie); the text changed 2 times.

  1. 8–10
  2. 11
  3. 12–13

Author

Daisuke Murase <[email protected]>

From libexporter-autoclean-perl 0.01-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.