in reply to Better ways to make multi-line comments in Perl?
There's a variety of ways to add comments using POD.
Quick and dirty method to comment out some code:
=pod ... lines to comment out ... ... should be indented ... =cut
Adding a single line comment:
=for comment Some single comment line =cut ... =for comment Some single comment line =cut
Adding a multiline comment:
=for comment Some comment with multiple lines. =cut ... =for comment Some comment with multiple lines. =cut
Adding a multiblock coment:
=for comment lines from first block lines from next block ... lines from last block =cut
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Answer: Better ways to make multi-line comments in Perl?
by CountZero (Bishop) on Aug 23, 2015 at 19:14 UTC | |
|
Re: Answer: Better ways to make multi-line comments in Perl?
by Anonymous Monk on Aug 23, 2015 at 10:14 UTC | |
by ww (Archbishop) on Aug 23, 2015 at 11:14 UTC | |
by Anonymous Monk on Aug 23, 2015 at 22:30 UTC |