how to install a package in perl ????

Answers were Sorted based on User's Feedback



how to install a package in perl ???? ..

Answer / jayakumar.b

Perl Installation on Linux/Unix:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% perl Makefile.PL
% make // nmake for Windows.
% make test
% make install
% make clean

Perl Installation on Windows:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% perl -MCPAN -e shell
% install <Module Name> Eg: install Net::FTP

Is This Answer Correct ?    6 Yes 0 No

how to install a package in perl ???? ..

Answer / 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

More CGI Perl Interview Questions

How to prevent file truncation in perl?

0 Answers  


Explain the arguments for perl interpreter.

0 Answers  


What is the difference between having a parenthesis after module name and without parenthsis after module name?? i.e Package::Module(); and Package::Module;

1 Answers  


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

0 Answers  


What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?

0 Answers  


There is no strict data types in perl unlike in other high level languages like Java so wouldn't that be a problem if a code in perl is to be a written by a big team of 20+ members ?"

0 Answers   Cisco, Oracle,


What is cpan in perl?

0 Answers  


Write a program that shows the distinction between child and parent process?

0 Answers  


How do I send e-mail from a Perl/CGI program on a Unix system?

0 Answers  


Why to use perl?

0 Answers  


Explain splicing of arrays?

0 Answers  


Mention how many ways you can express string in Perl?

0 Answers  


Categories