Perl and LWP Book Available for Pre-Order

pudge on 2002-04-26T21:38:49

TorgoX writes "You can now preorder my book Perl & LWP at Amazon and at BN. Pay no attention to both sites' miscapitalizion of the title."

"I think there'll be a sample chapter put up some time or other, but in the mean time, here's a descriptive ToC from the Preface:

Chapter 1, Preparing for LWP, covers in general terms what LWP does, the alternatives to using LWP, and when you shouldn't use LWP.

Chapter 2, HTTP and LWP::Simple, explains how the web works and the easy-to-use yet limited functions for accessing it.

Chapter 3, The LWP Classes for HTTP, covers the more powerful interface to the web.

Chapter 4, The LWP Classes for URLs, shows how to parse URLs with the URI class, and how to convert between relative and absolute URLs.

Chapter 5, Forms, describes how to submit GET and POST forms.

Chapter 6, HTML Processing with Regular Expressions, shows how to extract information from HTML using regular expressions.

Chapter 7, HTML Processing with Tokens, provides an alternative approach to extracting data from HTML using the HTML::TokeParser module.

Chapter 8, Tokenizing Walkthrough, is a case study of data extraction using tokens.

Chapter 9, HTML Processing with Trees, shows how to extract data from HTML using the HTML::TreeBuilder module.

Chapter 10, Modifying HTML with Trees, covers the use of HTML::TreeBuilder to modify HTML files.

Chapter 11, Cookies, Authentication, and Advanced Requests, deals with the tougher parts of requests.

Chapter 12, Spiders, explores the technological issues involved in automating the download of more than one page from a site.

Appendix A, LWP Modules, is a complete list of the LWP modules.

Appendix B, HTTP Status Codes, is a list of HTTP codes, what they mean, and whether LWP considers them error or succcess.

Appendix C, Common MIME Types, contains the most common MIME types and what they mean.

Appendix D, Common Language Tags, is a list of the most common language tags and what they mean (e.g., "zh-cn" means Mainland Chinese, while "sv" is Swedish).

Appendix E, Common Content Encodings, is a list of the most common character encodings ("character sets") and the tags that identify them.

Appendix F, ASCII Table, is a table to help you make sense of the most common Unicode characters. It shows the character, its numeric code (in decimal, octal, and hex), and any HTML escapes there may be for it.

Appendix G, User's View of Object-Oriented Modules, is an introduction to the use of Perl's object-oriented programming features.

I would love it if people here 1) ordered the book, and 2) wrote reviews about how happy they are with it, as compared to not having it at all (which is the only alternative, as this is the only book on LWP out there). There is an unwelcome trend lately toward only malcontents bothering to write Amazon reviews of tech books. ("And on p 43 he misspells 'Bette Midler' as 'Bette Middler' so ZERO STARS THIS BOOK SUCKS!") Hopefully more germane reviews can be written for my lucious book!"


Woot!

samtregar on 2002-04-27T02:07:20

Congratulations, Sean! I put in my order and I'll write up a review as soon as I read it.

-sam

Question to the author...

MeerCat on 2002-04-27T08:48:26

Sean,

I look forward to reading your book as I've only ever used LWP in the shallowest way, and found it hard to find any material to let me cross over to "full-blown" use, but I was wondering if you could answer an LWP question for me (cheeky I know, but you can always say no).

A few years back I wrote HttpSniffer.pl as an HTTP tunnel, or monitor (cf xmon) as I think of it - this was for debugging cookies and similar headers for scripted pages, but has proved quite popular for other people. At the time, LWP was all about being an HTTP client, but HttpSniffer has to play both client and server and should NOT follow redirects etc. so I wrote all my own HTTP handling code.

Now I understand LWP has been extended over time - so I was thinking about re-writing HttpSniffer using LWP - if it makes it easy for me to read and write the HTTP stream without modifiying it in any way... any hints, clues or gotchas that I should look out for, or do you think it should prove ridiculously easy.... ??

Cheers and TIA

T

 

There is another

jdavidb on 2002-04-27T21:07:43

O'Reilly has a "Web Client Programming With Perl" book out there; you can even read it online for free. That's where I've pointed people in the past when they wanted to do something LWP was suited for.

I'll be glad to have a new book on the subject! I haven't done much with LWP myself, but I know it's there and have all sorts of ideas for it.

Re:There is another

Andrew Langmead on 2002-04-28T16:06:55

The book version of Web client Programming with Perl is out of print. It is available to rent from Safari and as part of the Perl CD Bookshelf

Re:There is another

jweveland on 2002-04-29T15:20:24

The online version is available on O'Reilly's Open Book Project site, along with ~20 other books.

Jon yet another perl hacker