in reply to Multi-line comments in perl code?
Analysis of Solutions (Yes = good) | ||||
---|---|---|---|---|
Solution | Optimized away | Strict friendly | Indentable directives | Usable mid-statement |
| No | Yes | No | No |
| Yes | No* | No | No |
| Yes | Yes | No | No |
(and variations) | Yes | Yes | Yes | No |
| Yes | Yes | No | Yes |
| Yes | Yes | Yes | Yes |
Judgements on readability left to you.
None of the above give warnings.
* — One cannot simply add my because the behaviour or my ... if 0; is undefined, and thus must not be used.
|
---|
In Section
Seekers of Perl Wisdom