Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Perl modules confusion

by targetsmart (Curate)
on Jun 25, 2009 at 09:16 UTC ( #774647=note: print w/ replies, xml ) Need Help??


in reply to Perl modules confusion

I installed some using cpan and some (same ones) manually into a self-made local folder.
I would like to clean up my modules installations and only install those (older versions) I need
simple, go to your self-made local folder and check the perl modules installed there, remove/delete the directories/files (modules), which you don't need.

2) How can I clean up the modules installations and install older versions of the same modules?
IMO, unless to tell perl that use the self-made local folder as a lib path, perl will still continue to use its own standard lib path that is there in @INC.
so remove the lib path which indicates your self-made local folder to Perl. It will work as normal and use your older versions of modules. :)


Vivek
-- 'I' am not the body, 'I' am the 'soul', which has no beginning or no end, no attachment or no aversion, nothing to attain or lose.


Comment on Re: Perl modules confusion
Re^2: Perl modules confusion
by umeboshi (Acolyte) on Jun 25, 2009 at 10:36 UTC
    Thanks, that was already VERY informative. That means, if I want to use the exact modules I want I can just temporarily change the lib path to my own folder and do what I need (since apparently I cannot uninstall modules from .cpan). Now, last question. When I print all paths I get:

    $ perl -le 'print foreach @INC'
    /etc/perl
    /usr/local/lib/perl/5.10.0
    /usr/local/share/perl/5.10.0
    /usr/lib/perl5
    /usr/share/perl5
    /usr/lib/perl/5.10
    /usr/share/perl/5.10
    /usr/local/lib/site_perl

    Sorry, I am a total newbie. Which of those paths do I need to change...and more importantly..how?
    Thanks a lot!
      Which of those paths do I need to change...and more importantly..how?
      way 1)
      unshift(@INC, '<path to your self-made local folder where the perl modules are installed>')

      way 2)
      use lib '<path to your self-made local folder where the perl modules are installed>'

      way 3)
      perl -I<path to your self-made local folder where the perl modules are installed>' <your perl program>

      see How do I add a directory to my include path (@INC) at runtime?
      Tutorials is the best place to start in perlmonks, if you are a newbie.
      i started from Categorized Questions and Answers and Tutorials


      Vivek
      -- 'I' am not the body, 'I' am the 'soul', which has no beginning or no end, no attachment or no aversion, nothing to attain or lose.
        Thanks a lot for your answers!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://774647]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2015-07-06 13:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (74 votes), past polls