Ralf S. Engelschall

NAME

CGI::GuruMeditation -- Guru Meditation for CGIs

SYNOPSIS

 use CGI;
 use CGI::GuruMeditation:

DESCRIPTION

This is a small module accompanying the CGI module, allowing the display of an error screen (somewhat resembling the classical red-on-black blinking "Guru Meditation" from the good old AmigaOS before version 2.04) in case of abnormal termination of a CGI. The module simply installs a $SIG{__DIE__} handler which sends a HTTP response to STDOUT showing a HTML/CSS based screen with the Perl error message and optionally an excerpt from CGI's source code where the error occurred. This provides both optically more pleasant and functionally more elaborate error messages for CGIs.

HISTORY

This small module actually was a quick hack and proof of concept during the development of OSSP quos. It was later found useful and reusable enough for other CGIs.

AUTHOR

Ralf S. Engelschall <rse@engelschall.com>

SEE ALSO

CGI, CGI::Carp.

http://en.wikipedia.org/wiki/Guru_meditation