---
name: "Exporter::AutoClean"
section: "3pm"
platform: "linux"
package: "libexporter-autoclean-perl"
version: "0.01-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Exporter::AutoClean"
---

# Exporter::AutoClean(3pm)

export instant functions available at compile time only

## NAME

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

## SYNOPSIS

```
    use Exporter::AutoClean;

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

## DESCRIPTION

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

## SEE ALSO

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

## 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.

## AUTHOR

Daisuke Murase \<typester@cpan.org\>

## COPYRIGHT AND LICENSE

Copyright (c) 2009 by KAYAC Inc.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.
