Howdy, for some reason some perl cgi scripts will only run with the -w option. If the -w option is not there then i get an "internal server error" and the apache error log logs "Premature end of script headers", or some such. Here are the scripts I am using to test this, in the same exact cgi-bin with the same owner/group and same permissions, but only the one with -w will work
This one does not work:
#!/usr/bin/perl
print "Content-type: text/plain\n\n";
print "hello world\n";
This one works!
#!/usr/bin/perl -w
print "Content-type: text/plain\n\n";
print "hello world\n";
Any Ideas?
Thanks!
--
bernie



LinkBack URL
About LinkBacks
Reply With Quote




