Richard's Perl Step 51
Modules


Perl Modules can be downloaded from CPAN, which has all Perl module downloads. How to install modules? (simple for Windows: copy to c:\perl\lib\)

 

1. Tree::DAG_Node module

Tree::DAG_Node, CPAN module download (for this module), and a tutorial.

 

3. Math::MatrixReal module

Math::MatrixReal, CPAN module download (for this module), very useful for matrix calculation.

 

3. LWP module - The World-Wide Web library for Perl

LWP - The World-Wide Web library for Perl, for the latest Perl download, you do not need to install this module anymore.
A book online Perl & LWP. Found some tutorials on the web...

libwww-perl: First a request object is created and configured. This object is then passed to a server and we get a response object in return that we can examine. A request is always independent of any previous requests, i.e. the service is stateless. The same simple model is used for any kind of service we want to access.

For example, if we want to fetch a document from a remote file server, then we send it a request that contains a name for that document and the response will contain the document itself.