From 7e19260ab8cc84165806f0d4688a95482e747dd5 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 10 Jul 2013 20:05:06 -0400 Subject: docs --- lib/lexically.pm | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/lib/lexically.pm b/lib/lexically.pm index ee41007..422312c 100644 --- a/lib/lexically.pm +++ b/lib/lexically.pm @@ -1,10 +1,25 @@ package lexically; use strict; use warnings; +# ABSTRACT: lexically import functions from non-lexical exporters use Exporter::Lexical 0.02 (); use Module::Runtime 'require_module'; +=head1 SYNOPSIS + + package Foo; + use Moose; + use lexically 'Scalar::Util' => 'reftype'; + +=head1 DESCRIPTION + +This pragma turns normal package-based exporter modules into lexical exporters. +This can be useful to ensure that your package namespace doesn't get polluted +(preventing the need for something like L entirely). + +=cut + our $INDEX = 0; sub import { @@ -36,4 +51,46 @@ sub import { delete $lexically::{"scratchpad_${index}::"}; } +=head1 BUGS + +No known bugs. + +Please report any bugs to GitHub Issues at L. + +=head1 SEE ALSO + +L + +=back + +=head1 SUPPORT + +You can find this documentation for this module with the perldoc command. + + perldoc lexically + +You can also look for information at: + +=over 4 + +=item * MetaCPAN + +L + +=item * Github + +L + +=item * RT: CPAN's request tracker + +L + +=item * CPAN Ratings + +L + +=back + +=cut + 1; -- cgit v1.2.3