Perl Tutorial : Perl data types
Perl Tutorial : Perl Operators
Perl Tutorial : Perl loops
Perl Tutorial : Perl Conditionals
Perl Tutorial : Perl Subroutines
Perl Tutorial : Perl regex
Perl Tutorial : Perl Files
Perl Tutorial : Perl & Databases
Perl Tutorial : Perl OOPs
Perl Tutorial : Perl signals
Perl Tutorial : Perl threads
Perl Tutorial : Perl Debugging

Introcution to Perl CGI

Introduction to modperl
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

    scalars and strings

    lc
    ord

    regex (regular expressions)

    arrays

    shift
    split

    More..

    eval
  • Share |

    perl and JIRA (using XML::RPC)

    Perl examples

  • How to use Data::Dumper?
  • How to parse config file?
  • Include external module in perl..
  • Download perl

    download stable version of perl
    Perl 5.10.1
    Perl interview Questions
    sed tutorial
    awk tutorial

    Join us on Google Groups

    Subscribe to perl
    Email:
    Visit this group
    Perl Jobs


    privacy | sitemap | disclaim | contact us
    © 2009 perlhome.com