Freelance Writing Jobs | Today's Articles | Sign In

 
Browse Sections

The CPAN Module


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.
The copyright of the article The CPAN Module in Perl is owned by Philip Yuson. Permission to republish The CPAN Module in print or online must be granted by the author in writing.

Go To Page: 1 2

Articles in this Topic    Discussions in this Topic