Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Learning CGI and mod_perl

by targetsmart (Curate)
on Dec 30, 2008 at 14:57 UTC ( #733259=perlquestion: print w/replies, xml ) Need Help??

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

Is there any tutorial or reference book available on perl CGI and mod_perl for an intermediate perl programmer.
I have spent some time with 'Teach yourself CGI in a week', but lot of it has got to do with internet basics, but surely CGI is covered, but I like to have some kind of developer's notebook on CGI.
I already know some php basics. I have also spent some time with perlmonks super search, but I need more references.

Replies are listed 'Best First'.
Re: Learning CGI and mod_perl
by borisz (Canon) on Dec 30, 2008 at 15:06 UTC for mod_perl
Re: Learning CGI and mod_perl
by r3plicant (Initiate) on Dec 31, 2008 at 00:04 UTC
    There are a lot of references out there. I like the modperl book and Writing Apache modules in C and Perl. Also, a pretty decent book if you are pretty new to Perl web development is Beginning Perl Web Development published by Apress. If you are already familiar with server-side web development and you need something for a specific task, I recommend Mason. If you just want to learn, roll your own modperl framework. I run linux( ubuntu :-) ) and apache2. I installed the modperl apache module and looked at the docs for the perl modules ( Apache::* and Apache2::*, etc ). Apache::DB is a sweet module the allows you to run the perl debugger on your http requests. There are tons of modules on CPAN to help you accomplish tasks you might want to integrate into your framework. Some of my favs are Text::Template ( for processing perl code in html ), JSON::XS ( self-explanatory ), CGI::Session ... I could go on forever. Good luck and have fun.
Re: Learning CGI and mod_perl
by sundialsvc4 (Abbot) on Dec 30, 2008 at 22:10 UTC

    Part of the challenge that you face is simply determining what it is that you want to learn (how to do). What is the business objective that you are trying to achieve, and what business obstacles must be overcome?

    We have come a lon-n-n-n-n-g way (thankfully...) from the days when Perl scripts read a GET/POST message as their standard-input and PRINTed their replies. The original CGI module (itself a light-years advancement over all that came before it) has since been augmented and extended by an immense number of “application frameworks” of various degrees of focus and complexity, as the members of the Perl community labored to make the best possible use of both their laziness and their hubris. :-D They are all right there, waiting for you, in CPAN.

    When you are reading a text of even slight age, you might well find yourself being pedantically taught how to do ... “a thing that has already been done,” and “oh by the way, done very well indeed.” In that case, you're just wasting your time (if not your personal curiosity) “learning how to do that thing” all over again. One does not prepare for a long road trip by learning how to refine gasoline.

    CPAN, “that luscious repository of ten thousand tested software modules,” is always the place to start ... and to finish. DRYOAE = Don't Repeat Yourself Or Anyone Else. Find the highest-level framework, or other body of existing, tested code, that you can find. Base your project on that.

Re: Learning CGI and mod_perl
by targetsmart (Curate) on Jan 16, 2009 at 13:23 UTC
    We can use 'Writing CGI applications with perl' book. But I am yet to read it.
Re: Learning CGI and mod_perl
by targetsmart (Curate) on Jan 17, 2009 at 08:50 UTC
    We can use the book 'Beginning Perl Web Development: From Novice to Professional', It is interesting to read and easy to practice. More information about the book can be found here or here

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://733259]
Approved by marto
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2020-10-20 15:58 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (210 votes). Check out past polls.