Jan 5, 2009, 12:27 PM
Post #5 of 5
Re: [hacksics] Why we need to complie perl modules
[In reply to]
Can anyone please tell me, why do we need to compile Perl modules from CPAN to used in our Perl scripts.
Can we just use those Perl modules without compiling (Is it possible to copy those *.pm files to one of Perl's LIBS path and use directly)
The modules in CPAN may have to be adapted to your system. By "compiling" them, the adaption can be made.
The first step is usually:
Which creates a Makefile for make(1). You can change some configuration parameters, like where the module will be installed, with options when creating the Makefile. See the README* file that comes with the module.
By "compiling" rather than simply copying, a great deal of flexibility and control is added.
I love Perl; it's the only language where you can bless your thingy.
Perl documentation is available at perldoc.perl.org. The list of standard modules and pragmatics is available in perlmodlib.
Get Markup Help. Please note the markup tag of "code".