diff options
author | Adriano Ferreira <a.r.ferreira@gmail.com> | 2007-12-09 20:33:54 -0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-12-11 09:37:48 +0000 |
commit | af30f7a9916860172b157c588c7799077604a8ee (patch) | |
tree | bf2f2d598998960986e25d36bdadfb9c29f54ce2 /lib/Exporter.pm | |
parent | c7e4122e45c6bfc5d336d3510d745f59db32c9f0 (diff) | |
download | perl-af30f7a9916860172b157c588c7799077604a8ee.tar.gz |
[DOC PATCH] Exporter - link fix and mention Exporter::Easy
From: "Adriano Ferreira" <a.r.ferreira@gmail.com>
Message-ID: <73ddeb6c0712091633s776bd500y3e1a7619206c93a@mail.gmail.com>
p4raw-id: //depot/perl@32605
Diffstat (limited to 'lib/Exporter.pm')
-rw-r--r-- | lib/Exporter.pm | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/Exporter.pm b/lib/Exporter.pm index 63534a565d..4530a19f78 100644 --- a/lib/Exporter.pm +++ b/lib/Exporter.pm @@ -9,7 +9,7 @@ require 5.006; our $Debug = 0; our $ExportLevel = 0; our $Verbose ||= 0; -our $VERSION = '5.61'; +our $VERSION = '5.62'; our (%Cache); # Carp does this now for us, so we can finally live w/o Carp #$Carp::Internal{Exporter} = 1; @@ -509,9 +509,21 @@ C<base> code to just establish the IS-A relationship. For more details, see the documentation and code of L<base> and L<parent>. +Another thorough remedy to that runtime vs. +compile-time trap is to use L<Exporter::Easy>, +which is a wrapper of Exporter that allows all +boilerplate code at a single gulp in the +use statement. + + use Exporter::Easy ( + OK => [ qw(munge frobnicate) ], + ); + # @ISA setup is automatic + # all assignments happen at compile time + =head2 What not to Export -You have been warned already in L</Selecting What to Export> +You have been warned already in L</Selecting What To Export> to not export: =over 4 |