Perl Programming Language



First published on September 9, 2019. Last updated on February 16, 2020.

Hopefully your program ran as desired. However, real life is often not that easy. Here are some suggestions for troubleshooting:

  1. Examine any warning messages. Sometimes they contain the line number of where there is problematic code.
  2. Checking your spelling.
  3. Make sure that you are not missing may semicolons.
  4. Check to see if all of your variables have been declared.
  5. Make sure special use characters are escaped with a backslash. For example, an “n” that is mean to indicate next line should be escaped, i.e. “\n”. Sometimes the “~” character or quotes inside of quotes also need to be escaped.
  6. Advanced: make sure the privileges for the file is executable (look up how to do this for your operating system; check information about your operating systems how to do so.)


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