Commonly Used Modules

Modules have been discussed on and off throughout this book. Now that the end is here, it's time to discuss a few useful modules that we didn't cover earlier. As has been mentioned several times already, CPAN is huge—these modules are just a selection that are widely used, but that aren't included as part of the Perl distribution.

LWP

LWP, also referred to as libwww-perl, is a massive package that contains a number of individual modules that pertain to basically all things Web-related. It's most frequently used for its built-in HTTP client, but it provides plenty of other Web-related features as well. After you've installed it, you can type perldoc LWP for details.

One module in the LWP package is LWP::Simple, which enables ...

Get Sams Teach Yourself Perl in 21 Days, Second Edition 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.