Home >> perlcgitutorial >>
Perl CGI Tutorial
Hello World from perl cgi.
You will need apache server to run cgi scripts.
Offcourse you can run at command line too! but you won't see the html formatting at command line you will see all tags.
#!/usr/bin/perl
print "Content-type: text/plain\n";
print "\n";
print "Hello, World, from CGI\n";
the line print "Content-type: text/plain\n"; is very important without this either your browser will display 'perl code' or 'Internal Server Error' I guess with some tweaking in apache configs you can avoid putting that line. But It's strongly recommended to put that line.
Perl CGI is very similar to perl .. you just have to include HTML tags.. yes more programming is needed for AJAX,cookies etc but I think you can always say if you know perl you know cgi! Try to vreate a simple HTML page with tables.. and you are done (just done with the introduction!)
Perl functions
|
perl and JIRA (using XML::RPC)
Download perl
download stable version of perl
Perl 5.10.1
|
|