1. Perl
  2. Syntax
  3. comment

Perl Comments

Learn how to make comments in Perl. Comments are written for annotation, where they are not actually executed.


# Use to write comments in Perl.

# comment

# Comments are from to the end.

Multi - line comment

To make a multi-line comment in Perl, use the notation "=pod =cut " as follows.


The part you want to comment on.


In fact, Perl doesn't provide syntax for multi-line comments. This notation is POD notation for writing Perl documents to indicate that this part is a document. You can use POD notation to make pseudo multi-line comments.

This comment should only be used if you want to comment it out temporarily and should not be included in the source code you release.

Related Informatrion