Perl Programming Language

Comments and Pseudocode

By

First published on September 9, 2019. Last updated on September 9, 2019.


Comments are useful for explaining what code does, to jog your memory later or help another programmer understand your code. Comments can be helpful for identifying sections of code, or for “turning off” individual lines of code for purposes of testing or options.

You can add comments in your code by preceding them with a “#”, which can appear at the beginning of an entire line of comments, or after the semicolon of a functional line of code.

You can also use comments to design and organize your program at a high level, before you write any actual functional code. This allows you to brainstorm quickly.


COURSE


Content is copyright the author. Layout is copyright Mark Ciotola. See Corsbook.com for further notices.