how to install a package in perl ????
Answers were Sorted based on User's Feedback
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 |
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 |
You want to empty an array. How would you do that?
You want to print the contents of an entire array. How would you do that?
Explain the various characteristics of perl.
What interface used in PERL to connect to database? How do you connect to database in Perl?
Why do you program in Perl?
What is the difference between chop & chomp functions in perl?
10 Answers Cap Gemini, DELL, Electronic Data, TCS,
Which feature of Perl provides code reusability ? Give any example of that feature.
Why is it hard to call this function: sub y { "because" } ?
Write a program to show the process of spawning a child process
What is Perl?
How can you create an object of a class in a package?
What is confess function in perl?