|Do you know where your variables are?|
Mixing configuration options and exports in 'use' statementby Dallaylaen (Hermit)
|on Dec 22, 2017 at 15:30 UTC||Need Help??|
Dallaylaen has asked for the
wisdom of the Perl Monks concerning the following question:
Hello dear esteemed monks,
I would like to be able to add per-package configuration parameters to the use statement of my module, but also let the module export some functions. Something like:
I came up with the following:
I don't want to remove exporter because it does the job and is predictable (and also has export tags).
Are there better/shorter/more common ways to do the same?