From: Adriano Ferreira Date: Sun, 9 Dec 2007 22:33:54 +0000 (-0200) Subject: [DOC PATCH] Exporter - link fix and mention Exporter::Easy X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=af30f7a9916860172b157c588c7799077604a8ee;p=p5sagit%2Fp5-mst-13.2.git [DOC PATCH] Exporter - link fix and mention Exporter::Easy From: "Adriano Ferreira" Message-ID: <73ddeb6c0712091633s776bd500y3e1a7619206c93a@mail.gmail.com> p4raw-id: //depot/perl@32605 --- diff --git a/lib/Exporter.pm b/lib/Exporter.pm index 63534a5..4530a19 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 code to just establish the IS-A relationship. For more details, see the documentation and code of L and L. +Another thorough remedy to that runtime vs. +compile-time trap is to use L, +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 +You have been warned already in L to not export: =over 4