Skip to Content
Computer Science & Perl Programming
book

Computer Science & Perl Programming

by Jon Orwant
November 2002
Intermediate to advanced
758 pages
19h 45m
English
O'Reilly Media, Inc.
Content preview from Computer Science & Perl Programming

Part I. Beginner Concepts

Chapter 2

Chapter 3

Chapter 4

Chapter 5

Chapter 6

Chapter 7

Chapter 8

Chapter 9

Chapter 10

Chapter 11

Chapter 12

In this first section, eleven articles teach you some of the corners of Perl that you won’t find in beginner books or tutorials, but are nevertheless critical bits of knowledge.

We start with two articles by Nathan Torkington. One of the first things novices learn is that Perl has three basic data structures: scalars, arrays, and hashes. Scalars are single chunks of data, such as strings or numbers. Arrays are an ordered sequence of scalars, and Nathan’s article, All About Arrays, teaches you how to manipulate them. His second article, Perfect Programming, shows you how to program defensively, demonstrating techniques for identifying mistakes and preventing them from occurring in the first place.

Next, Mark Jason Dominus’s Precedence shows how Perl’s operators “grab” the operands around them—some tightly, some loosely, and some in ways that you were never taught in grade school. After reading his article, you’ll understand exactly when you need parentheses in your expressions. Art Ramos’s The Birth of a One-Liner then shows you why Perl programs sometimes look inscrutable to the untrained eye.

Frossie Economou’s Comparators, Sorting, and Hashes shows how to use hashes (which map strings to values), demonstrating comparators and Perl’s sorting techniques along the way. Nathan Torkington continues his explanation of Perl’s syntax with What Is Truth?

Sean Burke ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Advanced Perl Programming

Advanced Perl Programming

Sriram Srinivasan
Perl Hacks

Perl Hacks

Chromatic, Damian Conway, Curtis Ovid Poe, Curtis (Ovid) Poe
Perl One-Liners

Perl One-Liners

Peteris Krumins

Publisher Resources

ISBN: 9780596003104Errata Page