in reply to Should my project be uploaded to CPAN as a module or an Application?
If you upload it as a module the user can use the key module as a module or a script if you add:
return 1 if caller; ...
to the end of your module. The caller line returns true as required for a module to load correctly. When run as a script caller returns false and the following code is executed.
That maybe helps as part of a technical solution, but doesn't address the more philosophical component of your question. For that I'm sorry I have no good advice, except that I don't see the harm in providing such a system as a module on CPAN.
|
|---|