Perl Programming Language
By Mark Ciotola
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:
- Examine any warning messages. Sometimes they contain the line number of where there is problematic code.
- Checking your spelling.
- Make sure that you are not missing may semicolons.
- Check to see if all of your variables have been declared.
- 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.
- 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.)