Perl Monk, Perl Meditation | |
PerlMonks |
Mixing configuration options and exports in 'use' statementby Dallaylaen (Chaplain) |
on Dec 22, 2017 at 15:30 UTC ( [id://1206043]=perlquestion: print w/replies, xml ) | 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? Thank you.
Back to
Seekers of Perl Wisdom
|
|