Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Sub-Exporter CPAN distribution.

Report information
The Basics
Id: 33751
Status: resolved
Priority: 0/
Queue: Sub-Exporter

People
Owner: Nobody in particular
Requestors: GAISSMAI [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.978
Fixed in: (no value)



Subject: -setup is broken for the 'as' parameter
Hi, the syntactic sugar: use Sub::Exporter -setup => {as => 'plugin', ...}; is broken in opposite to the explicit call to setup_exporter: use Sub::Exporter; Sub::Exporter::setup_exporter( { as => 'plugin', ... } ); Seems it's missing in the valid_config_keys in the BEGIN block: 617 my %valid_config_key; 618 BEGIN { 619 %valid_config_key = 620 map { $_ => 1 } 621 qw(collectors installer generator exports groups into into_level), 622 qw(exporter), # deprecated 623 } perl -e "use Sub::Exporter -setup => {as => 'plugin'};" unknown options (as) passed to Sub::Exporter at -e line 1 BEGIN failed--compilation aborted at -e line 1. Best regards and thanx a lot for Sub::Exporter Charly
-setup uses build_exporter, not setup_exporter. You want: use Sub::Exporter -setup => { -as => 'name', ... }; I have added a clarification of this to the documentation. -- rjbs
On So. 02. Mär. 2008, 10:21:40, RJBS wrote: Show quoted text
> -setup uses build_exporter, not setup_exporter. You want: > > use Sub::Exporter -setup => { -as => 'name', ... }; > > I have added a clarification of this to the documentation.
thanx a lot for your fast reply. Sorry for the wrong bug report. Best Regards Charly
Closed after a reply reopened it. -- rjbs