develooper Front page | perl.perl5.porters | Postings from January 2016

[perl #127384] [PATCH] use Importer to enhance Exporter in blead

Thread Next
From:
Chad Granum
Date:
January 27, 2016 04:08
Subject:
[perl #127384] [PATCH] use Importer to enhance Exporter in blead
Message ID:
rt-4.0.18-19869-1453867660-1104.127384-75-0@perl.org
# New Ticket Created by  Chad Granum 
# Please include the string:  [perl #127384]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=127384 >


Attached is a patch to perl blead. This patch brings in the Importer
distribution, and updates Exporter.pm to use it for any feature beyond
basic sub exporting. This also updates a couple other files that needed to
be updated due to the changes.

Key things to note:

* Nothing existing needs to change.
* Exporter will still work for everything it has always worked for
* Nothing is required to start using Importer
* This introduces the { -as => 'new_name' } syntax discussed in another
thread
* This puts it on the consumer of an exporter to list an Importer version
in their deps if they depend on a specific feature not available in old
exporters.

-Chad

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About