Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I tried setting up my 2003 server with the instructions I found at

http://www.imbored.biz/perl/

But it's not behaving quite right -- When I point my browser to the perl program, the program pops up in a command prompt window instead of appearing inside the browser. Does anyone know how to fix this?

I have just a vanilla test.pl program,

#!/bin/perl use CGI qw(:standard); print header('text/html'); print "<html>\n<head>\n</head>\n<body>\nhi\n</body>\n</html>\n"; #$x = <STDIN>;

Replies are listed 'Best First'.
Re: Perl CGI on Windows 2003?
by blue_cowdawg (Monsignor) on Aug 08, 2003 at 20:12 UTC

    Suspect strongly the server is misconfigured.


    Peter @ Berghold . Net

    Sieze the cow! Bite the day!

    Nobody expects the Perl inquisition!

    Test the code? We don't need to test no stinkin' code!
    All code posted here is as is where is unless otherwise stated.

    Brewer of Belgian style Ales

      I think I figured it out. You have to access it via "http://..." instead of "file://..." For some reason this makes it behave differently.
        That's because the HTTP protocol is handled by the web server, whereas the file:// protocol is just a web browser extension (or something like that...either way, the web server doesn't handle those types of URLs).