rahu_6697 has asked for the wisdom of the Perl Monks concerning the following question:
Hello to all! I am new to perl-cgi, just trying to execute my first program and stored it as mytest.pl in my home directory. I am working on a shared unix based server so I don't have access to var/www/cgi-bin folder of my directory and there is not any webserver package installed. So how should i run this type of files. Please provide step by step procedure for running this file such that on browser Hello World! should display.
#!/usr/local/bin/perl print "Content-Type: text/html\n\n"; print "<html> <head>\n"; print "<title>Hello, world!</title>"; print "</head>\n"; print "<body>\n"; print "<h1>Hello, world!</h1>\n"; print "</body> </html>\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: PERL-CGI on shared unix server
by NetWallah (Canon) on Jun 22, 2018 at 05:55 UTC | |
by rahu_6697 (Novice) on Jun 22, 2018 at 06:27 UTC | |
Re: PERL-CGI on shared unix server
by Your Mother (Archbishop) on Jun 22, 2018 at 15:20 UTC | |
Re: PERL-CGI on shared unix server
by taint (Chaplain) on Jun 22, 2018 at 19:51 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |
Back to
Seekers of Perl Wisdom