| print "No errors\n"; | 1 |
| print :Error Here\n; | 2 (There will be an error message, don't mind it for now) |
| Screen output | Explanation |
| print "No Errors\n"; | No Message |
| print :Error Here\n; | |
| syntax error at - line 2, near "print :" | Message due to error in previous line |
| ^Z | Signifies end of line |
| Execution of - aborted due to compilation errors. | Execution failed because of compile error |
| print "No errors\n"; | 1 |
| print "Error Here\n"; | 2 |
| Note: Perl cannot know if you have any logic errors in your program. Logic errors are errors in the instructions that causes the program to work differently from what it was designed for. |