How do I create CGI scripts with Perl?

I am creating a website and doing some HTML stuff, but I am thinking of creating a website using CGI and Perl scripts. I am not very good at CGI scripting. Can anyone suggest me how to create a CGI script and how to create web pages with this?

+2


source to share


4 answers


See Initial commissioning of the web programming in Perl on perl.com .

I would recommend that you use tools like Template Toolkit or Markapl to make it easier to create and maintain your HTML representation.



And moving forward, you might consider using a web framework , ranging from something very light like Squatting to a powerful beast like Catalyst .

+3


source


Try the Ovid CGI Course - it's a good start. An Introduction to Perl Web Programming is also a good read, but with less information.



Later you can try a framework like CGI :: Application - it should be lightweight even for beginners.

+5


source


CGI is a standard for interacting with a web server and content provider or external application (say a Perl script, a compiled program), I think you better learn Perl to code some CGI.

This link is a beginner's guide to getting started with CGI coding in Perl.

Also, if you are new to Perl, you may want to look at another scripting language more dedicated to the web interface, the best example being PHP. But if you've tried Perl CGI before, CGI.pm is nice too.

+2


source


As I understand your question, you are saying that you wrote your own web server and now want to implement CGI !?

These links will help you:

CGI specification

How to implement CGI on a web server

Edit: Check the original question before trying me out.

-1


source







All Articles