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!