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

Re: Proposal: Add {-as => 'new_name'} feature to

Thread Next
Chad Granum
January 24, 2016 06:12
Re: Proposal: Add {-as => 'new_name'} feature to
Message ID:

This blog post was spawned by this thread, and some very good thing people
introduced into the discussion.

Part 1 is up on cpan (

I do not have a formal patch made from Part2, but the commit is on my
github clone of the perl repo. I am mainly posting this here to gauge
opinion and seek feedback.


On Thu, Dec 17, 2015 at 12:51 PM, Chad Granum <> wrote:

> Several modern export tools such as Sub::Exporter and Exporter::Declare
> make it possible to rename subs that you import. They tend to use a
> consistent syntax:
> use Foo 'export_name' => {-as => 'new_name'};
> As of yet has no such capability.
> 1) Would anyone be opposed to having this functionality added? (and why?)
> 2) Does anyone oppose keeping the above syntax since it is consistent with
> everything else?
> 3) Are there any good technical reasons not to do this?
> Assuming there are no objections to the idea I would like to write a patch
> (unless someone else wants to do it).
> -Chad

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About