http://qs1969.pair.com?node_id=824050

hesco has asked for the wisdom of the Perl Monks concerning the following question:

I'm using CGI::FormBuilder, my constructor includes header => 1, templates => '/path/to/template.html', and I'm getting this error:

malformed header from script. Bad header=<?xml version="1.0" encoding= +": volunteer.cgi
Doesn't this mean it is not getting the Content-Type? Shouldn't header being set to 1 generate such an animal? When I add a print $q->header(); to the mix, it resolves the issue. But I would have thought that setting header => 1, in the constructor would do the trick.

-- Hugh

if( $lal && $lol ) { $life++; }
if( $insurance->rationing() ) { $people->die(); }