The CPAN Module


© Philip Yuson
Articles in this Topic    Discussions in this Topic
Page 2
characters.

Installing modules
One of the reasons for using CPAN is to simplify installation. If your module requires other modules and these requisite modules are not installed, CPAN will install them automatically for you.

To install modules, type:

install modulename

When you install a module, CPAN will create the makefile, make the module, test it and then install it in one step.

To install the Tk module, you can do this:
install DBI


To install the HTML::Mason module, you do this:
install HTML::Mason

Forcing Installation
There will be times when the CPAN install would not work. You might have to force the installation ONLY if you are sure that the error is acceptable. Otherwise, you will have to manually install the module.

To force installation, you can type:

force install modulename

This will install the module even if CPAN encounters errors during testing.

Go To Page: 1 2


Post this Article to facebook Add this Article to del.icio.us! Digg this Article furl this Article Add this Article to Reddit Add this Article to Technorati Add this Article to Newsvine Add this Article to Windows Live Add this Article to Yahoo Add this Article to StumbleUpon Add this Article to BlinkLists Add this Article to Spurl Add this Article to Google Add this Article to Ask Add this Article to Squidoo