http://www.perlmonks.org?node_id=586424


in reply to Why am I getting "premature end of script header"?

Why don't you use use CGI::Carp qw(fatalsToBrowser);?

Replies are listed 'Best First'.
Re^2: Why am I getting "premature end of script header"?
by ikegami (Patriarch) on Nov 28, 2006 at 07:51 UTC

    Showing the world your error messages is not the best idea, especially when the OP can see the messages just fine in his error log.

    The problem is that the OP wants to load a module if it's present, and take some alternate action if it's not.