Skip to Content
Games, Diversions & Perl Culture
book

Games, Diversions & Perl Culture

by Jon Orwant
May 2003
Intermediate to advanced
585 pages
16h 29m
English
O'Reilly Media, Inc.
Content preview from Games, Diversions & Perl Culture

Chapter 11. PDL: The Perl Data Language

Karl Glazebrook

Frossie Economou

Since this article was originally written, PDL has evolved considerably and adopted a large modular structure. The PDL functions now number in the hundreds, preventing us from listing them all. However, the principles behind PDL are unchanged, and this article remains a good introduction to them. It has been slightly updated to reflect the latest PDL version.

Extolling the virtues of Perl and its many uses to the readers of TPJ is preaching to the converted. Nevertheless, there is one fundamental area in computing where Perl has been conspicuously absent: number crunching and data analysis.

Tarred by the same brush as other scripting languages, Perl (which in fact is semi-compiled), is perceived as too slow and memory-devouring for heavy numerical computations because it doesn’t lend itself to storing and retrieving zillions of numbers quickly. This has been a source of great frustration to the authors, both enthusiastic Perl (ab)users who resent being forced to use more primitive environments for their astronomical data analysis. Perl’s potential for manipulating numerical data sets speedily and elegantly via an extension was obvious. Hence PDL, the Perl Data Language, was born. PDL is a Perl extension, so you get the convenience of programming in Perl with the speed of compiled C.

PDL introduces a new data structure: the “pdl numerical array,” often referred to as a “piddle.” (This unfortunate nickname has led ...

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

Wicked Cool Perl Scripts

Wicked Cool Perl Scripts

Steve Oualline
Perl Testing: A Developer's Notebook

Perl Testing: A Developer's Notebook

Ian Langworth, Chromatic
GREP in InDesign

GREP in InDesign

Peter Kahrel

Publisher Resources

ISBN: 9781449398651Errata Page