What Is CPAN

This section provides a quick introduction on CPAN (Comprehensive Perl Archive Network).

What Is CPAN? - CPAN (Comprehensive Perl Archive Network) is huge repository of Perl modules and other resources.

Main features of CPAN:

Here is how to start the CPAN shell interface by invoking the CPAN module with the "shell" command:

herong$ perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v2.18)
Enter 'h' for help.

cpan[1]>

At the CPAN shell prompt, you can get help by entering the "help" command:

cpan[1]> help

Display Information                                             (ver 2.18)
 command  argument          description
 a,b,d,m  WORD or /REGEXP/  about authors, bundles, distributions, modules
 i        WORD or /REGEXP/  about any of the above
 ls       AUTHOR or GLOB    about files in the author's directory

Download, Test, Make, Install...
 get     download                    clean   make clean
 make    make (implies get)          look    open subshell in dist directory
 test    make test (implies make)    readme  display these README files
 install make install (implies test) perldo  display POD documentation

Upgrade
 r       WORDs or /REGEXP/ or NONE   report updates for matching modules
 upgrade WORDs or /REGEXP/ or NONE   upgrade matching modules

Pragmas
 force  CMD    try hard to do command  fforce CMD    try harder
 notest CMD    skip testing

Other
 h,?           display this menu       ! perl-code   eval a perl command
 o conf [opt]  set and query options   q             quit the cpan shell
 reload cpan   load CPAN.pm again      reload index  load newer indices
 autobundle    Snapshot                recent        latest CPAN uploads

For more information, see CPAN Website.

Table of Contents

 About This Book

 Perl on Linux Systems

 Perl on macOS Computers

 ActivePerl on Windows Systems

 Data Types: Values and Variables

 Expressions, Operations and Simple Statements

 User Defined Subroutines

 Perl Built-in Debugger

 Name Spaces and Perl Module Files

 Symbolic (or Soft) References

 Hard References - Addresses of Memory Objects

 Objects (or References) and Classes (or Packages)

 Typeglob and Importing Identifiers from Other Packages

 String Built-in Functions and Performance

 File Handles and Data Input/Output

 Open Files in Binary Mode

 Open Directories and Read File Names

 File System Functions and Operations

 Image and Picture Processing

 Using DBM Database Files

 Using MySQL Database Server

 Socket Communication Over the Internet

 XML::Simple Module - XML Parser and Generator

 XML Communication Model

 SOAP::Lite - SOAP Server-Client Communication Module

 Perl Programs as IIS Server CGI Scripts

 CGI (Common Gateway Interface)

 XML-RPC - Remote Procedure Call with XML and HTTP

 RPC::XML - Perl Implementation of XML-RPC

 Integrating Perl with Apache Web Server

 CGI.pm Module for Building Web Pages

 LWP::UserAgent and Web Site Testing

 Converting Perl Script to Executable Binary

CPAN (Comprehensive Perl Archive Network)

What Is CPAN

 Install Perl Module with CPAN Shell

 "cpan" Command Line Tool

 CPAN Local Directories and Files

 Archived Tutorials

 References

 Full Version in PDF/EPUB