http://www.perlmonks.org?node_id=998926


in reply to Re^2: How do you do multi-version modules?
in thread How do you do multi-version modules?

Maybe you want to reuse parts of ::API1 in ::API2, then? It's only you who claims that you have to duplicate code between the modules. Maybe having a preconfigured API "object" which contains the default parameters would be an option too, if the "API" only consists of default parameters.

This has nothing to do with putting many modules in one file. You've already been advised against that, but this discussion is far besides the point.