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