
FishMonger
Veteran
Feb 25, 2013, 6:28 PM
Post #14 of 15
(280 views)
|
|
Re: [Kenosis] Premature end of script headers
[In reply to]
|
Can't Post
|
|
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.
D:\>perldoc CGI NAME CGI - Handle Common Gateway Interface requests and responses SYNOPSIS use CGI; 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 print $q->header(); print $q->header('application/json'); $cookie1 = $q->cookie(-name=>'riddle_name', -value=>"The Sphynx's Question"); $cookie2 = $q->cookie(-name=>'answers', -value=>\%answers); print $q->header( -type => 'image/gif', -expires => '+3d', -cookie => [$cookie1,$cookie2] ); print $q->redirect('http://somewhere.else/in/movie/land'); .... .... .... 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.
|