ACCU Home page ACCU Conference Page
Search Contact us ACCU at Flickr ACCU at GitHib ACCU at Facebook ACCU at Linked-in ACCU at Twitter Skip Navigation

Search in Book Reviews

The ACCU passes on review copies of computer books to its members for them to review. The result is a large, high quality collection of book reviews by programmers, for programmers. Currently there are 1949 reviews in the database and more every month.
Search is a simple string search in either book title or book author. The full text search is a search of the text of the review.
    View all alphabetically
Title:
Perl&LWP
Author:
Sean Burke
ISBN:
0 596 00178 9
Publisher:
O'Reilly
Pages:
242pp
Price:
£24-95
Reviewer:
Joe McCool
Subject:
perl
Appeared in:
14-6
Ever wonder how Perl gurus write those one-liners that go off and fetch data from a distant web site, displaying the results in neatly arranged columns? Well, this book provides many of the answers.

Essentially LWP is a CPAN module that can be downloaded for free and used with Perl. Once installed, you can pull data from web sites, parse it, upload data, complete forms, post etc. It really is exciting stuff. As early as page 11, the reader can be using Perl to scrape data from the O'Reilly catalogue page and it does work, I've tried it. The example code can be downloaded from the author's site and fired up in minutes. So, for a working program in a live situation all one has to do is modify the author's code a little. (Sadly one of the example sites he uses is no longer active - but that is not a serious drawback.)

As one might expect, the Perl code is largely object orientated, but don't let this deter those familiar only with procedural methods. The OO stuff is not a hindrance, indeed it serves as an introduction (sideways) to that subject too.

When I claim you can be up and going in minutes, I mean minutes after you have LWP installed. The author explains the CPAN bits OK, but after the instruction; perl -MCPAN -eshell (and install Bundle::LWP), be prepared for a long wait. If your perl precedes 5.8, the installation routine will upgrade your perl at the same time. This can mean a long stare at the screen while make exercises your C compiler. It also means you may have to a little shuffling around of perl executables, getting the old version out of the way. (This is neither explained, nor hinted at.) If you're like me this delay can be frustrating, with such exciting possibilities in store, but be patient. It's worth the wait. Plenty of time for a read. I recommend this book highly.