Skip navigation.
Home
Your source for Perl tips, howto's, faq and tutorials
( categories: )

Perl, by default, does not have any specific tokens to specify multiline comments. Nevertheless, there are several workarounds to accomplish this.

The easiest solution is to use the POD system, enclosing the comments between 2 lines: the first line should begin with '=comment' and the last line should begin with '=cut'.

Example:

=comment multiline_comment
 
This is
a
multiline
comment
 
=cut