Re: Are comments allowed before package declarations in modules?




On Tue, 2008-02-26 at 12:35 -0500, Jonathan Mast wrote:
I seem to have a vague memory about Perl not allowing comments before
program statements, but I'm not sure. I really want to add a lot of
comments at the top of a rather large module, but I'm unsure if thats safe.

The perl best practices book recommends that the documentation (POD)
appears at the end of the module. I don't personally like this
recommendation because it makes it easier for the programmer to forget
to maintain the documentation.

--
Ken Foskey
FOSS developer


.