leocharre has asked for the wisdom of the Perl Monks concerning the following question:
I have a distro with some cli scripts. One is a perl script and one is a c program. (I've been using c here and there and was very pleasantly surprised to see my Makefile.PL compile bin/code.c and take care of the rest without batting an eye. Wow.. I owe my predecessors..)
I've been embracing a practice of putting my documentation in separate .pod files. This helps maintenance- and gives that nice syntax highlighting in vim for pod- if you care about that.
Also, in my case with some c code, I can make a separate .pod file, since you likely can't embed pod in a .c source file.
Putting docs in .pod files works well for perl module files, but I am having some trouble getting the same to work for other stuff..
For example... if I have
lib/MyModule.pm and lib/MyModule.pod, there's no problem. I can access the docs via 'man MyModule'.
But if I have bin/myscript and bin/myscript.pod , I have problems. It works if I place the doc in lib/myscript.pod - or if I place the doc inline inside bin/myscript
Thus, is the rule of thumb here that any documentation should be organized into a lib/ hierarchy inside a distro (or also at the root?) ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Some clarification where pod files should reside in a distro
by trwww (Priest) on May 13, 2009 at 17:36 UTC | |
by leocharre (Priest) on May 13, 2009 at 20:50 UTC | |
by trwww (Priest) on May 13, 2009 at 21:10 UTC | |
|
Re: Some clarification where pod files should reside in a distro
by JavaFan (Canon) on May 13, 2009 at 22:37 UTC | |
|
Re: Some clarification where pod files should reside in a distro
by shmem (Chancellor) on May 13, 2009 at 22:02 UTC |