Channels ▼
RSS

Web Development

Beginning Perl


Jack J. Woehr is an independent consultant and team mentor practicing in Colorado. He can be contacted at http://www.softwoehr.com/.


Beginning Perl, Second Edition
James Lee, Simon Cozens, and Peter Wainwright
Apress, 2004
600 pp., $39.99
ISBN 159059391X

Beginning Perl, Second Edition, is a Perl 5.6 self-tutorial introductory book gone Perl 5.8. It's a great book for computer-science students and programmers who want to jump into Perl at the intermediate level. Programming beginners may well be baffled: This is not an introduction to computer science itself.

Executive summary: If you're a working coder and don't know Perl, or perhaps want a refresher course (Perl comes upon one in fits, like Lewis Carroll's passion for chess), Beginning Perl is one of the more business-like and thorough-going expositions on the bookshelf, as well as being neatly written and eminently readable.

Breadth of coverage is good in Beginning Perl, running right up through object-oriented Perl and modules. Necessarily concise, the coverage is anything but superficial; rather, it is most nerdly and rich in insights, alternatives, and tips. The final two chapters, by a mysterious, unwritten, but apparently universal law of computer technical publishing, are dedicated to "on beyond," in this instance CGI and DBI.

Beginning Perl is a quality production in both accuracy and layout. The table of contents, source code for the examples, and forums are found online at http://www.apress.com/book/bookDisplay .html?bID=344. Amusingly, the book does not contain this URL, instead referring the reader seeking source code to Apress's home page, which features a search engine incapable of finding the term "Beginning Perl" and that had to be fed the ISBN number to find the book.

The second edition was prepared by James Lee, the competent clean-up batter who brought in the 5.8 coverage. However, experienced programmers may themselves be baffled by the earnest but mumbled and equivocal coverage of Perl 6. Experts among us can sometimes compile and even occasionally run Perl 6 at this writing in early 2005. I've done it myself, submitting patches along the way, and I'm still embarrassed by how much effort it took.

Simon Cozens, fellow TPJ writer, departing master of perl.org, and author of Advanced Perl Programming (soon out in second edition) and something like 70 CPAN modules, was the original author of Beginning Perl. Let's see what he had to say about the new edition of his book:

"I was asked if I would like to write Beginning Perl 2. I said yes. I was then told that the publishers 'would prefer to find an author who can carry revisions of the book from 5.6 to the present and beyond for Perl 6." I said that writing a Perl 6 book at this point was insane, but I took the hint that they were going to be using my first edition but getting another author to update it."

I chatted recently with Simon, who is retiring from Perl (but not from TPJ) and heading off to be an overseas Christian missionary.

TPJ: You seem to sort of validate my thesis that a good liberal arts education is a sound basis for technical pursuits.

Simon Cozens: Hmm, interesting. I think it certainly helps for communicating technical ideas.

TPJ: Are you a C.S. Lewis fan?

SC: I am, yes. I have all his works behind me at the moment.

TPJ: The "hard" stuff too? For example, The Great Divorce, The Problem of Pain, and so forth, one assumes.

SC: Yep.

TPJ: Lewis definitely was an influence for me. Do you suppose that somehow that sort of influence affects programming style?

SC: Hmm, tricky one. It's certainly not conscious. Maybe there's something about the Oxford tutorial style that both he and I are a product of that leads to particular clarity of logical expression. But I suspect that's overanalyzing; I originally learned to program from my father, who's as much of an engineer as they come.

TPJ: So your Japanese is pretty good?

SC: Yep. That was my first degree. Beginning Perl was written while I was living in Japan.

TPJ: How about Advanced Perl Programming?

SC: Advanced Perl Programming is a complete reworking of the O'Reilly book. It's more of a rewrite than a second edition; I've kept no material [from the original].

TPJ: Are you cutting that loose for your mission or are you going to keep in touch with the publisher via e-mail?

SC: Oh, I'll still be in touch with the editor. We've put the whole thing in Subversion and we're editing it together. But yeah, I do want to clear the decks as soon as I can.

TPJ: So you can become a moth in the flame of metaphysical speculation?

SC: Well, so I can preach to people about something other than Perl for a while.

TPJ: Is this a hiatus or do you really feel you'll not work in coding anymore?

SC: I really am going out to full-time missionary work, so in that sense, I'm never going to be a professional programmer again. I suspect I will end up doing the occasional bits of coding to make things easier for myself or to bring in additional income if support gets tight, but I'm very much permanently phasing out of the open-source community.

TPJ: You're positively Byronic, you know...

SC: It's liberating! And, Larry Wall was going to do it, but didn't make it. So that gets me one up on him.

TPJ: Any last thoughts to hurl over the wall into the Perl community before you fold your tent and vanish into the desert?

SC: I think one failure of mind that people involved in programming can have is to think that the world revolves around their sphere of operation; that, say, everyone in the world ought to care about software patents or programming freedom or good style, or that everyone in programming should be using Perl, or whatever. Programming in Perl becomes an end in itself. What I'm doing is opening the door to the rest of the world out there; if you program in Perl, do it to make that world out there a better place. Perl can be a good tool to sculpt the world with, but don't confuse Perl and the world.

TPJ: Well have a wonderful life, be a blessing to all you meet.

SC: Thanks, I'm sure it's going to be an experience.

TPJ


Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.
 
Dr. Dobb's TV