[Koha-devel] Re: [Koha] premature end of script headers

Rick Welykochy rick at praxis.com.au
Fri Jan 19 04:54:55 CET 2007


Rick Welykochy wrote:

> A way to avoid the cryptic "Premature end of script headers" in scripts
> is to use the exception handling facility of Perl.

One can also use CGI::Carp, i.e.

use CGI::Carp qw(fatalsToBrowser);

But (a) it does not show *all* error messages as one would see in the shell
and (b) it should be removed once in production.

It can prove useful while developing CGI scripts.

-rw



-- 
_________________________________
Rick Welykochy || Praxis Services

The 7 R's of Windows support: retry, restart, reboot, reconfigure,
reinstall, reformat and finally, replace with Linux.





More information about the Koha-devel mailing list