[thelist] perl scripts causing server error

Hassan Schroeder hassan at webtuitive.com
Tue Apr 16 12:15:01 CDT 2002


BT Bigpant wrote:

> #!/usr/bin/perl
> print "Hi there!";
>
> I get "Internal Server Error".

If you're trying to access this script from a browser (rather than
from the command line), you'll need to generate an HTTP header --

#!/usr/bin/perl

print "Content-type: text/plain\n\n";
print "Hi there!";

HTH!
--
H*
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

    -- creating dynamic Web sites and applications since 1994 --



More information about the thelist mailing list