Subject: | Non-optimal code sample in the doc |
Hi, thanks for implementing my previous request.
However, sample code in the documentation is working but not optimal:
my $extras_plugin = grep { $_->plugin_name eq 'Extras' } $zilla->plugins;
my $name1 = $extras_plugin->params->{name1}; # -> "value1"
There is no need for grepping plugins, Dist-Zilla has convenient method plugin_named:
my $extras_plugin = $zilla->plugin_named('Extras');
my $name1 = $extras_plugin->params->{name1}; # -> "value1"