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!"
-sam
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 BookshelfRe: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