On Wed, Jun 15, 2022 at 07:59:10AM -0400, Andrew Dunstan wrote:
> My would we do that? If you want a map don't pass any switches. But as
> written you could do:
>
> my ($incdir, $localedir, $sharedir) = $node->config_data(qw(--includedir --localedir --sharedir));
>
> No map needed to get what you want, in fact a map would get in the
> way.
Nice, I didn't know you could do that. That's a pattern worth
mentioning in the perldoc part as an example, in my opinion.
--
Michael