mod_perl doesn't tolerate sloppy programming. Although we're confident that you're a talented, meticulously careful programmer whose programs run perfectly every time, you still might want to tighten up some of your Perl programming practices.
In this chapter, we include discussions that rely on prior knowledge of some areas of Perl, and we provide short refreshers where necessary. We assume that you can already program in Perl and that you are comfortable with finding Perl-related information in books and Perl documentation. There are many Perl books that you may find helpful. We list some of these in Section 6.13 at the end of each chapter.
If you prefer the documentation that comes with Perl, you can use either its online version (start at http://www.perldoc.com/ or http://theoryx5.uwinnipeg.ca/CPAN/perl/) or the perldoc utility, which provides access to the documentation installed on your system.
To find out what Perl manpages are available, execute:
panic% perldoc perl
For example, to find what functions Perl has and to learn about their usage, execute:
panic% perldoc perlfunc
To learn the syntax and to find examples of a specific function, use the -f flag and the name of the function. For example, to learn more about open( ), execute:
panic% perldoc -f open
The perldoc supplied with Perl versions prior to 5.6.0 presents the information in POD (Plain Old Documentation) format. From 5.6.0 onwards, the documentation is shown in manpage format.
You may find the perlfaq manpages very useful, too. To find all the FAQs (Frequently Asked Questions) about a function, use the -q flag. For example, to search through the FAQs for the open( ) function, execute:
panic% perldoc -q open
This will show you all the relevant question and answer sections.
Finally, to learn about perldoc itself, refer to the perldoc manpage:
panic% perldoc perldoc
The documentation available through perldoc provides good information and examples, and should be able to answer most Perl questions that arise.
Chapter 23 provides more information about mod_perl and related documentation.
 
Continue to: