Appendix A. LWP Modules

While the text of this book has covered the LWP modules that you need to know about to get things done, there are many additional modules in LWP. Most of them are behind the scenes or have limited use that we couldn’t spare the space to discuss. But if you want to further your knowledge of LWP’s internals, here’s a roadmap to get you started.

These are the LWP modules, listed alphabetically, from the CPAN distributions most current at time of writing, libwww-perl v5.64, URI v1.18, HTML-Parser v3.26, HTML-Tree v3.11, and HTML-Format v1.23. Especially noteworthy modules have an “*” in front of their names.

Module

Description

File::Listing

Module for parsing directory listings. Used by Net::FTP.

HTML::Form

Class for objects representing HTML forms.

HTML::FormatPS

Class for objects that can render HTML::TreeBuilder tree contents as PostScript.

HTML::Formatter

Internal base class for HTML::FormatPS and HTML::FormatText.

*HTML::FormatText

Class for objects that can render HTML::TreeBuilder tree contents as plain text.

*HTML::Entities

Useful module providing functions that &-encode/decode strings (such as C. & E. Brontë to and from C. & E. Brontë).

HTML::Filter

Deprecated class for HTML parsers that reproduce their input by default.

HTML::HeadParser

Parse <HEAD> section of an HTML document.

HTML::LinkExtor

Class for HTML parsers that parse out links.

HTML::PullParser

Semi-internal base class used by HTML::TokeParser.

*HTML::TokeParser

Friendly token-at-a-time HTML pull-parser ...

Get Perl & LWP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.