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

Explain chomp?

511


What are the two ways to get private values inside a subroutine?

450


What is perl pop array function?

532


How can you create anonymous subroutines?

544


What's the difference between /^Foo/s and /^Foo/?

547






Explain goto expr?

488


What is the easiest way to download the contents of a URL with Perl?

557


How to connect with sqlserver from perl and how to display database table info?

530


How can arrays be tied?

517


what is the main function of fork() in cgi programming?

545


what is the function of Return Value?

561


When do you use perl programming?

587


Explain different types of perl operators.

537


Explain the meaning of closure in perl.

525


Does Perl have reference type?

523