-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
Perl comments are from "#" until line end, like in most contemporary scripting languages.
some_statement(); # this comment lasts until the end of the lineFurthermore, the Perl interpreter skips over documentation written in the POD (Plain Old Documentation) format, so this should be treated like a comment, too. POD looks like this:
some_statement();
=pod
This is documentation.
=cut
some_other_statement();It is started by any POD command. Such commands always start with "=" and must always appear at the beginning of the line (without any whitespace before them, i.e. column 1). The regexp /^=/ detects POD commands reasonably reliably in Perl code.
A documentation text always ends with the command "=cut", so the end can be found by /^=cut/.
A complete reference of the POD format is available at http://perldoc.perl.org/perlpod.html
Metadata
Metadata
Assignees
Labels
No labels