Apress Access

Beginning Perl

3rd Edition

By James Lee

  • eBook Price: $27.99
Buy eBook Buy Print Book

Beginning Perl Cover Image

This is a book for those of us who believed that we didn't need to learn Perl, and now we know it is more ubiquitous than ever.

Full Description

  • Add to Wishlist
  • ISBN13: 978-1-4302-2793-9
  • User Level: Beginner
  • Publication Date: April 13, 2010
  • Available eBook Formats: PDF

Related Titles

  • Go Recipes
  • Building APIs with Node.js
  • Pro MEAN Stack Development
  • Pro Marketing and Search Engine Optimization
Full Description

This is a book for those of us who believed that we didn’t need to learn Perl, and now we know it is more ubiquitous than ever. Perl is extremely flexible and powerful, and it isn’t afraid of Web 2.0 or the cloud. Originally touted as the duct tape of the Internet, Perl has since evolved into a multipurpose, multiplatform language present absolutely everywhere: heavy-duty web applications, the cloud, systems administration, natural language processing, and financial engineering. Beginning Perl, Third Edition provides valuable insight into Perl’s role regarding all of these tasks and more.

Commencing with a comprehensive overview of language basics, you’ll learn all about important concepts such as Perl’s data types and control flow constructs. This material sets the stage for a discussion of more complex topics, such as writing custom functions, using regular expressions, and file input and output. Next, the book moves on to the advanced topics of object-oriented programming, modules, web programming, and database administration with Perl’s powerful database interface module, DBI. The examples and code provided offer you all of the information you need to start writing your own powerful scripts to solve the problems listed above, and many more.

Whether you are a complete novice or an experienced programmer, Beginning Perl, Third Edition offers an ideal guide to learning Perl.

What you’ll learn

  • How to use the power of Perl
  • How to handle Perl data structures
  • How to build database applications regardless of the underlying database
  • How to parse complex data
  • How to write industrial-strength object-oriented Perl
  • How to start web programming in Perl

Who this book is for

This book is for programmers of all shades and persuasions who thought they could do without Perl. Think again.

Table of Contents

Table of Contents

  1. First Steps in Perl
  2. Scalars
  3. Control Flow Constructs
  4. Lists and Arrays
  5. Hashes
  6. Subroutines/Functions
  7. Regular Expressions
  8. Files and Data
  9. String Processing
  10. Interfacing to the Operating System
  11. References
  12. Modules
  13. Object-Oriented Perl
  14. Introduction to CGI
  15. Perl and DBI
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.


If you think that you've found an error in this book, please let us know by emailing to editorial@apress.com . You will find any confirmed erratum below, so you can check if your concern has already been addressed.

On page 242:

There's an error in the string of code.

Or we could get the element [...] substituting references for array names:

$element = ${${ref}[2]}[1];

Should be:

$element = ${${$ref}[2]}[1];

#the dollar sign before 'ref' is missing as written in the book and that results in error

On page 354:

Should be: CREATE TABLE what_they_play

"TABLE" is left out

On page 355:

After logging into database as new user, you must enter this command:

USE musicians_db;

before inserting into the table


    1. Unboxing Android USB


      View Book

    2. Beginning AngularJS


      View Book

    3. Beginning Ruby


      View Book

    4. Pro Arduino


      View Book