in reply to Block comments with POD commands
According to perlpod(1), =for uses the next paragraph (everything until a blank line), while =begin runs until a matching =end. If the block of code you're commenting out is just one POD paragraph, it will probably work the same both ways, since =for will ignore the extra =end.
It's important to keep in mind that POD is designed for documentation, not for commenting out blocks of code; the commenting effect is just a convenient side-effect. That's why the syntax seems like a strange way to do comments.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Block comments with POD commands
by Theo (Priest) on Jul 16, 2003 at 20:32 UTC | |
by sgifford (Prior) on Jul 16, 2003 at 21:05 UTC | |
by cmilfo (Hermit) on Jul 16, 2003 at 20:37 UTC |