Feb 25, 2013, 6:28 PM
Post #14 of 15
Re: [Kenosis] Premature end of script headers
[In reply to]
Am just not too sure how 'accessible' it is to the OP. This is a Beginners' forum...
I'm not sure what you mean since the OP is using perl and the documentation comes as part of the base install and is accessible via the perldoc tool.
CGI - Handle Common Gateway Interface requests and responses
my $q = CGI->new;
# Process an HTTP request
@values = $q->param('form_field');
$fh = $q->upload('file_field');
$riddle = $query->cookie('riddle_name');
%answers = $query->cookie('answers');
# Prepare various HTTP responses
$cookie1 = $q->cookie(-name=>'riddle_name', -value=>"The Sphynx's Question");
$cookie2 = $q->cookie(-name=>'answers', -value=>\%answers);
-type => 'image/gif',
-expires => '+3d',
-cookie => [$cookie1,$cookie2]
If the OP's installation is missing the docs, then I'd say that installation is broken.
Since the documentation is also online and the OP is obviously online as well, the documentation is easily available in html form via http://search.cpan.org/ and http://perldoc.perl.org/
It's possible that the OP didn't know about those resources and if that's the case, then IMO it's our responsibility to inform the OP.