Preface

Perl is a programming language that is useful. By this, we mean that people don’t learn Perl just because they think they should, they learn Perl because they want to get something done.

This book is for Perl programmers who need to get things done. It’s for readers who have dabbled a little in Perl and want a single reference for all their needs. This book is part reference, part guide to the world of Perl. We cover the language itself, but also the Perl modules that are most popular—modules for CGI, database manipulation, network programming, graphical interfaces, and Win32 integration.

How This Book Is Organized

This book has eight parts, as follows:

Part I

Chapter 1, gets you oriented to Perl and the Perl community.

Chapter 2, gives you some pointers on getting Perl and its modules installed on your machine. This chapter introduces you to the CPAN archive and discusses using the CPAN module to retrieve the latest versions of Perl modules.

Part II

Chapter 3, is about using the perl program itself. It covers environment variables, command-line options, and the differences in executing the Unix and Win32 versions of Perl.

Chapter 4, is the turbo-charged tutorial/reference to the Perl language. If you’ve never programmed before, then you might need a tutorial that goes more slowly. But if you have some experience with other programming languages, this chapter should teach you enough to start writing Perl programs.

Chapter 5, is a reference chapter for each of the built-in functions to Perl.

Chapter 6, is about using the Perl debugger to help locate the rare errors in your programs.

Part III

Chapter 7, gives a quick introduction to Perl packages, Perl modules, and object-oriented programming in Perl.

Chapter 8, is a reference to each of the modules included in the standard Perl distribution.

Part IV

Chapter 9, is a brief introduction to the concepts behind CGI programming.

Chapter 10, covers the very popular CGI.pm module, which is deemed essential by many CGI programmers.

Chapter 11, is about mod_perl, the Apache module that can be used to significantly improve CGI performance and also allows you to embed Perl code into the Apache server itself.

Part V

Chapter 12, gives a brief introduction to DBM databases in Perl, and provides a reference to DBI, the Database Independence package that gives you a consistent interface to many different database packages.

Part VI

Chapter 13, explains socket programming and how to use the IO:Socket module.

Chapter 14, covers the Net::SMTP and Net::POP3 modules for sending and reading email, and also the Mail modules for manipulating email messages.

Chapter 15, explains the NNTP protocol and the Net::NNTP module for reading and posting Usenet news, and the News::Newsrc module for managing .newsrc files.

Chapter 16, explains the FTP protocol, the Net::FTP module for transferring files by FTP, and the Net::Netrc module for managing .netrc files.

Chapter 17, covers the most commonly used parts of the huge LWP library of modules for HTTP transactions.

Part VII

Chapter 18, is a reference to the Tk extension to Perl, for creating graphical user interfaces from within a Perl program.

Part VIII

Chapter 19, talks about the many Perl modules for working with the Win32 operating systems.

Chapter 20, is about the ActiveX scripting tool, which is loosely based on Perl.

Get Perl in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.