[wplug] ot perl question
Henry Umansky
hmust2+ at pitt.edu
Tue Aug 19 08:58:06 EDT 2003
You will need the add the following:
my $q = new CGI;
print $q->start_html;
print $q->header( -type=>'text/html');
print "some text";
print $q->end_html;
--On Tuesday, August 19, 2003 8:33 AM -0400 John Harrold <jmh17+ at pitt.edu>
wrote:r
> sorry about the off topic post, but i thought someone here would be able
> to answer this question. the code below is syntactically correct (e.g.
> perl -c is ok) and when i run it from a terminal it run, but when i try
> to access it from the web i get:
>
> Premature end of script headers: something.pl
>
> the file has perms 0755 and should be execuitable. it's directory
> (~/public_html) has the correct permissions also. does anyone have any
> suggestions as to what might be wrong?
>
> <snip>
># !/usr/bin/perl -w
>
> use strict;
> use warnings;
> use diagnostics;
> use CGI;
>
>
>
> my $q = new CGI;
> print $q->header( -type=>'text/html');
> print "some text";
> </snip>
>
>
> --
> --------------------------------------------------------------------------
> | /"\
> john harrold | \ / ASCII ribbon campaign
> jmh at member.fsf.org | X against HTML mail
> the most useful idiot | / \
> --------------------------------------------------------------------------
> What difference does it make to the dead, the orphans, and the homeless,
> whether the mad destruction is brought under the name of totalitarianism
> or the holy name of liberty and democracy?
> --Gandhi
> --------------------------------------------------------------------------
> gpg --keyserver keys.indymedia.org --recv-key F65A739E
> --------------------------------------------------------------------------
Henry Umansky
University of Pittsburgh
Computing Services and Systems Development
hmust2 [at] pitt [dot] edu
(412) 624 -4357
More information about the wplug
mailing list