Re: Are comments allowed before package declarations in modules?



On Feb 26, 12:35 pm, jhmast.develo...@xxxxxxxxx (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..

.... what happened when you tried it?


You can put all the comments you want before a `package` statement.

Your misremembering is likely tied to the fact that you can't put any
comments (or anything else) before the shebang in the main file.

Paul Lalli

.