[wplug] ot perl question
John Harrold
jmh17 at pitt.edu
Tue Aug 19 08:33:06 EDT 2003
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
--------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://penguin.wplug.org/pipermail/wplug/attachments/20030819/a031517c/attachment-0001.bin
More information about the wplug
mailing list