Not a direct answer to your question, cpan shell is always better because it resolves dependencies, but generally i will do like this.
whenever you install a module you have to give the prefix as your desired directory path
for example,
assuming I am downloading warnings::unused from
http://search.cpan.org/CPAN/authors/id/G/GF/GFUJI/warnings-unused-0.04.tar.gz
go to the downloaded path and untar the tar ball and run
perl Makefile.PL prefix=$HOME
make
make install
make test
make clean
add the installed directory in $PATH variable
man warnings::unused
you will get the man page of it
but for using this module in your perl program you have to either you
-I option of perl interpreter
or
use lib
or
add in @INC
it will just work fine
you can have any number of modules downloaded like this and keep in yo
+ur home directory, as long as you have disk space and internet.
Vivek
-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.