Re: Are comments allowed before package declarations in modules?
- From: mritty@xxxxxxxxx (Paul Lalli)
- Date: Tue, 26 Feb 2008 09:51:15 -0800 (PST)
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
.
- References:
- Are comments allowed before package declarations in modules?
- From: Jonathan Mast
- Are comments allowed before package declarations in modules?
- Prev by Date: Are comments allowed before package declarations in modules?
- Next by Date: Re: OO question
- Previous by thread: Are comments allowed before package declarations in modules?
- Next by thread: Re: Are comments allowed before package declarations in modules?
- Index(es):