Re: Multiple Perl Version on the same server

[email protected] (brian d foy)
Newsgroups perl.macosx
Message-ID <140120081512462119%[email protected]>
In article <[email protected]>, Michael Barto
<[email protected]> wrote:


> over (e.g. /usr/new/perl). Their concern is there is only one MySQL 
> program, but the Perl libraries to access it would be  different. 

There are already multiples ways to access a database server.

> Second, they think installing a later version of Perl in a different 
> location would overwrite the current library. I am not really clear how 
> Perl locates its install Libraries,

It asks you at configure time where you want to put them.

I put all my perls in /usr/local/perls, each with their completely
separate trees of modules, executables, and so on. I leave alone
Apple's perl and link /usr/local/bin/perl to the one I want to use most
of the time. I make other links to particular versions, such as
/usr/local/bin/perl5.10.0.

I have to install modules multiple times, but that is no big deal. I
start cpan(1) with the right perl and it finds the right CPAN/Config.pm
and installs them in the right place:

   $ perl5.10.0 cpan ...
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.