Download Red Hat Enterprise Linux 6 Developer Guide

Transcript
Red Hat Ent erprise Linux 6 Developer G uide
The official module packages can be installed with yum or rpm from the Red Hat
Enterprise Linux repositories. They are installed to /usr/share/perl 5 and either
/usr/l i b/perl 5 for 32bit architectures or /usr/l i b6 4 /perl 5 for 64bit architectures.
Mo d u les f ro m C PAN
Use the cpan tool provided by the perl-CPAN package to install modules directly from the
CPAN website. They are installed to /usr/l o cal /share/perl 5 and either
/usr/l o cal /l i b/perl 5 for 32bit architectures or /usr/l o cal /l i b6 4 /perl 5 for
64bit architectures.
T h ird p art y mo d u le p ackag e
Third party modules are installed to /usr/share/perl 5/vend o r_perl and either
/usr/l i b/perl 5/vend o r_perl for 32bit architectures or
/usr/l i b6 4 /perl 5/vend o r_perl for 64bit architectures.
C u st o m mo d u le p ackag e / man u ally in st alled mo d u le
These should be placed in the same directories as third-party modules. That is,
/usr/share/perl 5/vend o r_perl and either /usr/l i b/perl 5/vend o r_perl for
32bit architectures or /usr/l i b6 4 /perl 5/vend o r_perl for 64bit architectures.
Warning
If an official version of a module is already installed, installing its non-official version can
create conflicts in the /usr/share/man directory.
3.3.1 1 .3. Pe rl Do cum e nt at io n
The perl d o c tool provides documentation on language and core modules. To learn more about a
module, use perl d o c mo d ul e_name. For example, perl d o c C G I will display the following
information about the CGI core module:
NAME
CGI - Handle Common Gateway Interface requests and responses
SYNOPSIS
use CGI;
my $q = CGI->new;
[...]
DESCRIPTION
CGI.pm is a stable, complete and mature solution for processing and
preparing HTTP requests and responses. Major features including
processing form submissions, file uploads, reading and writing cookies,
query string generation and manipulation, and processing and preparing
HTTP headers. Some HTML generation utilities are included as well.
[...]
PROGRAMMING STYLE
There are two styles of programming with CGI.pm, an object-oriented
60