The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Sub::Exporter::Lexical - Exports subrtouines lexically

SYNOPSIS

        package Foo;
        use Sub::Exporter::Lexical
                exports => [
                        qw(foo bar),
                        baz => \&bar, # i.e. the synonym of bar
                ],
        ;

        # ...

        {
                use Foo;
                foo(...); # Foo::foo(...)
                bar(...); # Foo::bar(...)
                baz(...); # Foo::bar(...), too

        } # foo, bar and baz are uninstalled

        foo(); # fatal!
        bar(); # fatal!
        baz(); # fatal!

SEE ALSO

Data::Util.