how to install a package in perl ????

Answer Posted / kuldip singh behal

doing make test and doing install <mod name> is only
possible if you are a root user or a trusted su user,
otherwise it is not at all possible to install the module in
perl.
but if you want to use that module without actually
installing it, it is possible. first download the tar file
of the module from the CPAN then untar the file in your
desired directory then see that where the .pm file lies copy
that .pm file to your desired location. now you have to see
whether that module is further using any module or not if
not then it is fine but if then you have to do the entire
process for the new module and provide the customized path
to the first module in the use or require, include the
desired pm file as using require lib or pushing the pm at
@INC manually.
push @INC <path to module>;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is perl unshift array function?

707


Elaborate on perl bite-wise operators.

679


What are the logical operators used for small scale operations?

726


What is an interpolation in perl?

747


How interpreter is used in perl?

688


How to replace perl array elements?

703


What are scalars?

752


How to renaming a file in perl programming?

739


In Perl we can show the warnings using some options in order to reduce or avoid the errors. What are that options?

758


What is the purpose of “_file_ literal” and “_line_ literal” in perl?

711


What are the purpose of close(), getc() and read() functions?

644


How will you create a file in perl?

700


Why to use perl?

714


What is the use of –w?

695


You want to connect to sql server through perl. How would you do that?

717