=sjs= has asked for the wisdom of the Perl Monks concerning the following question:

We want to continue using scripts that use version xxx of perl while developing using version xxy. Is there a standard way of installing multiple versions of perl to allow this? I've seen installations of different versions under /usr/local/bin and installs of different versions of perl under /usr/local/perl/version (where version might be 5.6.1) but I'm looking for a standard or recommended way of doing this.

Replies are listed 'Best First'.
Re: multiple perl version support
by chromatic (Archbishop) on Oct 11, 2002 at 06:48 UTC

    This is documented in the INSTALL file. You can specify an installation prefix with the -Dprefix= flag. I have several versions of Perl installed on one of my servers to test code for backwards compatibility.

    If you do this, be careful to use the correct Perl binary when installing modules.

      I was hoping more for a protocal on where to put the code than how to do it. Is there a convention on this or do I need to be creative. I have someone in Paris who wants to use code I've created but we may not necessarily be on the same rev of perl at the same time.

      Thanks

      Steve S.