in reply to Re: Re: Re: Perl and XML
in thread Perl and XML

thank you. that fixed it. maybe I should rename myself to CGI<101 so yeah, how do you use the
use CGI::Carp 'fatalsToBrowser';
do you need the
print "Content-type: text/plain\n\n";
for that to work as well. Cause I stuck the fatalsToBrowser in their first hoping for a decent error message - but no same error. And of course, when I put the header in their, it works, so no error at all.

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Perl and XML
by bart (Canon) on Mar 16, 2004 at 23:52 UTC
    "fatalsToBrowser" will only kick in in case Perl produces an error. In this case, it didn't, forgetting the header and closing off the headers, was completely your own mistake. Perl itself didn't complain, but still, the webserver wasn't happy.