http://www.perlmonks.org?node_id=580486

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

Hi, I have started learning cgi scripting. I know the hello world program, but i am not aware where to place the hello.pl so that when i go to web browser and type http://servername/cgi-bin/hello.pl i should get the hello world output. Thanks Hemal

Replies are listed 'Best First'.
Re: where to place the .pl fro cgi script
by McDarren (Abbot) on Oct 25, 2006 at 05:02 UTC
Re: where to place the .pl fro cgi script
by shmem (Chancellor) on Oct 25, 2006 at 05:05 UTC
    Read the documentation of your web server program. It must be placed in a directory where it can be found by the web server. That directory must be marked as containing executable CGI (common gateway interface) programs.

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
A reply falls below the community's threshold of quality. You may see it by logging in.