Home arrow Perl Programming arrow Page 4 - Introduction to mod_perl (part 5): More Perl Basics

perldoc's Rarely Known But Very Useful Options - Perl

In this article we continue to talk about the essential Perl basics,that you should know before starting to program for mod_perl.

  1. Introduction to mod_perl (part 5): More Perl Basics
  2. my() Scoped Variable in Nested Subroutines
  3. When You Cannot Get Rid of The Inner Subroutine
  4. perldoc's Rarely Known But Very Useful Options
  5. References
By: Stas Bekman
Rating: starstarstarstarstar / 5
March 12, 2003

print this article



It's a known fact, that one cannot become a Perl hacker and especiallymod_perl hacker without knowing how to read Perl documentation andsearch through it. Books are good, but an easily accessible andsearchable Perl reference at your fingertips is a great time saver. Italways has the up-to-date information for the version of perl you'reusing.

Of course you can use online Perl documentation at the Web. I preferhttp://theoryx5.uwinnipeg.ca/CPAN/perl/ to the official URL:http://www.perl.com/pub/v/documentation is very slow :( . Theperldoc utility provides you with access to the documentationinstalled on your system. To find out what Perl manpages areavailable execute:

% perldoc perl

To find what functions perl has, execute:

% perldoc perlfunc

To learn the syntax and to find examples of a specific function, youwould execute (e.g. for open()):

% perldoc -f open

Note: In perl5.005_03 and earlier, there is a bug in this and the-q options of perldoc. It won't call pod2man, but willdisplay the section in POD format instead. Despite this bug it'sstill readable and very useful.

The Perl FAQ (perlfaq manpage) is in several sections. To searchthrough the sections for open you would execute:

% perldoc -q open

This will show you all the matching Question and Answer sections,still in POD format.

To read the perldoc manpage you would execute:

% perldoc perldoc

>>> More Perl Programming Articles          >>> More By Stas Bekman

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Perl Turns 25
- Lists and Arguments in Perl
- Variables and Arguments in Perl
- Understanding Scope and Packages in Perl
- Arguments and Return Values in Perl
- Invoking Perl Subroutines and Functions
- Subroutines and Functions in Perl
- Perl Basics: Writing and Debugging Programs
- Structure and Statements in Perl
- First Steps in Perl
- Completing Regular Expression Basics
- Modifiers, Boundaries, and Regular Expressio...
- Quantifiers and Other Regular Expression Bas...
- Parsing and Regular Expression Basics
- Hash Functions

Developer Shed Affiliates


Dev Shed Tutorial Topics: