From 7350a47f2419742e3b7d8a28a1b28c688eecdbce Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 10 Jul 2013 16:59:54 -0400 Subject: docs --- lib/Exporter/Lexical.pm | 72 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/lib/Exporter/Lexical.pm b/lib/Exporter/Lexical.pm index 411c168..0a1ea5a 100644 --- a/lib/Exporter/Lexical.pm +++ b/lib/Exporter/Lexical.pm @@ -4,6 +4,32 @@ use warnings; use 5.018; # ABSTRACT: exporter for lexical subs +=head1 SYNOPSIS + + package My::Exporter; + use Exporter::Lexical -exports => [ 'foo' ] + sub foo { "FOO" } + + package MyApp; + + { + use My::Exporter; + warn foo(); # FOO + } + warn foo(); # Undefined subroutine &main::foo called + +=head1 DESCRIPTION + +This module allows you to export lexical subs from your exporter module. It is +implemented using the new C feature in perl 5.18, so the +functions truly are lexical (unlike some of the previous attempts). + +This module is quite experimental, and may change a lot in the future as I +figure out how it should work. It is very much a proof of concept for the +moment. + +=cut + use XSLoader; XSLoader::load( __PACKAGE__, @@ -46,10 +72,56 @@ sub import { } } +=head1 BUGS + +No known bugs. + +Please report any bugs through RT: email +C, or browse to +L. + +=head1 SEE ALSO + +L + +L + +L + +=head1 SUPPORT + +You can find this documentation for this module with the perldoc command. + + perldoc Exporter::Lexical + +You can also look for information at: + +=over 4 + +=item * MetaCPAN + +L + +=item * RT: CPAN's request tracker + +L + +=item * Github + +L + +=item * CPAN Ratings + +L + +=back + =begin Pod::Coverage lexical_import =end Pod::Coverage +=cut + 1; -- cgit v1.2.3-54-g00ecf