From the beginning, please read About module names from PAUSE administrators. If you still have questions or are still unsure, refer to modules <at> perl.org
.
The easiest way is to use the name in the App::
namespace, for example App::MyMod
.
As a rule, I saved the script and module documentation in their separate files, but at the top of the module documentation I explicitly referred to the script documentation and indicated that most users would want to read this for normal use.
To create a README
from the script documentation:
pod2readme bin/my_script
Similarly, if you change your mind and want README
refer to the module:
pod2readme lib/App/MyMod.pm
Assuming you are using ExtUtils :: MakeMaker for your builds, you can verify that the script is installed by adding the directive:
EXE_FILES => [ 'bin/my_script' ],
Unless, of course, your script is in the top level bin
your distribution. Other build systems have similar directives.
source share