Comments

Other topics

Single-line comments

Single-line comments begin with a pound sign # and go to the end of the line:

# This is a comment

my $foo = "bar"; # This is also a comment

Multi-line comments

Multi-line comments start with = and with the =cut statement. These are special comments called POD (Plain Old Documentation).

Any text between the markers will be commented out:

=begin comment

This is another comment.
And it spans multiple lines!

=end comment

=cut

Contributors

Topic Id: 6815

Example Ids: 23137,23138

This site is not affiliated with any of the contributors.