Skip navigation Download free eBooks and textbooks

Choose a category

Perl for Beginners

Perl for Beginners
Not enough reviews yet
ISBN: 978-87-7681-623-0
1 edition
Pages : 133
Price: Free

Download for FREE in 4 easy steps...

We are terribly sorry, but in order to download our books or watch our videos, you will need a browser that allows JavaScript.
After entering your email address, a confirmation email will be sent to your inbox. Please approve this email to receive our weekly eBook update. We will not share your personal information with any third party.

This is a Premium eBook - get it free for 30 days

You can also read this in Premium


Perl is a popular programming language, often mentioned in job adverts. It is heavily used for system admin, and for Web development.

300+ Business books exclusively in our Premium eReader

  • No adverts
  • Advanced features
  • Personal library
More about Premium

Buy this eBook

Buy now

Subscribe to all 800+ eBooks

Start free trial 30 day FREE trial

About the book

  1. Description
  2. Content
  3. About the Author
  4. Embed


Perl is a popular programming language, often mentioned in job adverts. It is heavily used for system admin, and for Web development. And it is fun. Compared with Perl, other languages can feel worthy but tedious.

However, few universities use Perl as a teaching language. Hence the need for a self-instruction textbook, like this one.

Beginners need to focus on the core of the language, bypassing features which are not essential in the early stages. This book does that: it covers all you need to write successful Perl programs, while shielding you from confusing inessentials.



1 Introduction

2 Getting started

3 Data types

4 Operators
4.1 Number and string operators
4.2 Combining operator and assignment
4.3 Truth-value operators

5 Flow of control: branches

6 Program layout

7 Built-in functions

8 Flow of control: loops

9 Reading from a file

10 Pattern matching
10.1 Matching and substitution
10.2 Character classes
10.3 Complement classes and indefinite repetition
10.4 Capturing subpatterns
10.5 Alternatives
10.6 Escaping special characters
10.7 Greed versus anorexia
10.8 Pattern-internal back-reference
10.9 Transliteration

11 Writing to a file
11.1 Reading, writing, appending
11.2 Pattern-matching modifier letters
11.3 Generalizing special cases

12 Arrays
12.1 Tables with numbered cells
12.2. An example
12.3 Assigning a list to an array
12.4 Adding elements to and removing them from arrays
12.5 Other operations on arrays

13 Lists

14 Scalar versus list context

15 Two-dimensional tables

16 User-defined functions
16.1 Adapting Perl to our own tasks
16.2 The structure of a user-defined function
16.3 A second example
16.4 Multi-argument functions
16.5 Divide and conquer
16.6 Returning a list of values
16.7 “Subroutines” and “functions”

17 Hash tables
17.1 Tables indexed by strings
17.2 Creating a hash
17.3 Working through a hash table
17.4 Advantages of hash tables
17.5 Hashes versus references to hashes

18 Formatted printing

19 Built-in variables

20 The debugger

21 Beyond the introduction


About the Author


Choose color
Implementation code. Copy into your own page
Embed Frame - Terms of Use

The embed frame is free to use for private persons, universities and schools. It is not allowed to be used by any company for commercial purposes unless it is for media coverage. You may not modify, build upon, or block any portion or functionality of the embed frame, including but not limited to links back to the website.

The Embed frame may not be used as part of a commercial business offering. The embed frame is intended for private people who want to share eBooks on their website or blog, professors or teaching professionals who want to make an eBook available directly on their page, and media, journalists or bloggers who wants to discuss a given eBook

If you are in doubt about whether you can implement the embed frame, you are welcome to contact Thomas Buus Madsen on and seek permission.