Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: CPAN Modules

by davido (Archbishop)
on Jul 11, 2013 at 05:15 UTC ( #1043627=note: print w/replies, xml ) Need Help??

in reply to CPAN Modules

This is pretty easy to investigate:

Array::Utils: First you visit and type in its search box, "Array::Utils". Click on the first item in the search results. On the right side of the page you'll see a link that says, "Dependencies" (unknown, in this case). Since dependencies seem to be "unknown", you would then want to click (at the left of the page) "Source", and view the module's source to see what dependencies it has. It appears to have no non-core dependencies.

Great, so next let's check the module's test results: Click on the "Test Results" link, and you'll find that it has, indeed passed tests on Perl 5.8. While you're at it, follow the module's page's "Browse" link, and then quickly review Makefile.PL, and the test suite to see if it has any hidden dependencies or explicit minimum Perl versions. It doesn't. You are good to go. Let's download it.

Again on the module's main page at metacpan, you will find a "Download" link. Click it, and Array-Utils-0.5.tar.gz will be downloaded to your system. You can unpack that tarball into a build directory, then perform the mantra: perl Makefile.PL, then make, make test, and if all goes well, make install.

Now for JSON: Take the same steps as above. You'll find it has no non-core dependencies listed, and that as you browse through the distribution's files, the test suite is designed to handle Perl versions that are pre-5.8. Reviewing test results will also show plenty of PASS tests for Perl 5.8.

Again, you can click the "Download" link, and get the tarball, unpack it, and perform the mantra.

This is the same investigative process you can follow for just about any module. Some will turn out to not be as easy to get up and running, but the investigation is the same; check dependencies, check tests, download (possibly download dependencies), build it, enjoy.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1043627]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2018-02-19 01:04 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (257 votes). Check out past polls.