Practical mod_perl / HTML Book /



previous page: Chapter 21. Error Handling and Debugging
  
page up: HTML Version of the book
  
next page: 21.1.1. The Importance of Warnings

21.1. Warnings and Errors Explained


The Perl interpreter distinguishes between warnings and errors. Warnings are messages that the Perl interpreter prints to STDERR (or to Apache's error log under mod_perl). These messages indicate that Perl thinks there is a problem with your code, but they do not prevent the code from running. Errors are output in the same way as warnings, but the program terminates after an error. For example, errors occur if your code uses invalid syntax. If a die( ) occurs outside of any exception-handling eval, it behaves just like an error, with a message being output and program execution terminating.

For someone new to Perl programming, the warning and error messages output by Perl can be confusing and worrysome. In this section we will show you how to interpret Perl's messages, and how to track down and solve the problems that cause them.

 

Continue to:

  • prev: Chapter 21. Error Handling and Debugging
  • Table of Contents
  • next: 21.1.1. The Importance of Warnings







TOP
previous page: Chapter 21. Error Handling and Debugging
  
page up: HTML Version of the book
  
next page: 21.1.1. The Importance of Warnings


Menu

  • HTML Book
  • PDF Book
  • Download Code
  • Table of Contents
  • Errata
  • mod_perl2 User's Guide
  • Sitemap

Search


Add to Google




Creative Commons License


Written by
Eric Cholet (Logilune) and
Stas Bekman (StasoSphere & Free Books).


[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007 StasoSphere.com