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

Hello I Have a perl script which ouputs html file contents. How can i host the output of perl script on web. For example i have a perl script htmp.pl shown below.
#!/usr/bin/perl print "Content-type: text/html\n\n"; print <<ENDHTML; <html> <head> <title>CGI Test</title> </head> <body> <a href="http://someplace.com">Click Here</a> </body> </html> ENDHTML
I want to host the output of this perl script on web. Regards Bharat

Replies are listed 'Best First'.
Re: host html o/p generated by perl script on web.
by marto (Cardinal) on Jun 21, 2010 at 11:18 UTC
Re: host html o/p generated by perl script on web.
by kejohm (Hermit) on Jun 21, 2010 at 11:52 UTC

    Do you mean display the output of your script in a web browser? If so, then you need a web server. You could set one up on your local machine if you are just looking to play around with CGI scripts. Try the Apache web server. It works on most platforms and is free. You will need to configure it a bit, though, so it properly runs CGI scripts.

    Update: Link fixed.

Re: host html o/p generated by perl script on web.
by Anonymous Monk on Jun 21, 2010 at 11:07 UTC
    I want to host the output of this perl script on web. Regards Bharat

    So copy/paste/save as a file/upload to your website and you're hosting.