Perhaps the most robust approach would be to make it illegal by default and provide a method to make it explicit which one you want to be default. But I'd lean toward using use Module v1.0 (); to set the explicit default. And if I did that then I'd probably opt for the simplified implementation and just use the last version number specified.
And won't you run into modules that need to know the module version number of the desired behavior when some of their subroutines are called? I doubt such modules are likely to be fancier than the above.
- tyeIn reply to (tye)Re: How should this work ? (design of Exporter::VA)
by tye
in thread How should this work ? (design of Exporter::VA)
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |