Study what comments are and how we should write them.

We need to add comments in our code to make it more readable for the reader. Comments in Perl are of two types:

  • Single line comment
  • Multiline comment

Single line comment

If our comment can fit on a single line, then we can use a # symbol.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy