in reply to Re: Can Multiple perl versions coexist without effecting one another on Solaris?
in thread Can Multiple perl versions coexist without effecting one another on Solaris?

Thanks Stevie. Question - Instead of going thru the hassle of upgrading, if I can use CPAN to do the installation on Solaris 10, then all the dependent modules will be installed on to the current perl version 5.10.1 automatically correct?

If the above statement is true, normally who does this installation in a company like a Unix admin?

  • Comment on Re^2: Can Multiple perl versions coexist without effecting one another on Solaris?

Replies are listed 'Best First'.
Re^3: Can Multiple perl versions coexist without effecting one another on Solaris?
by stevieb (Canon) on Sep 30, 2015 at 19:26 UTC

    If I'm understanding you correctly, yes, when you install from CPAN, it'll install all needed dependencies, granted the Makefile.PL or Build.PL of the modules are configured with their dependencies properly (I rarely ever have issues with dependencies when installing via CPAN).

    Also, if you've got Unix sysadmins, that's who would most likely do the installs.

      Thanks for confirming Stevie. I think I have some direction now. :)
      One followup question is that I have installed the current version of perl 5.22 on my windows and is there that I can just move all the dependent modules related .pm files to solaris server and place them in PERL5LIB location so that I can just use these modules as if they are installed on server?

        Hey newperlmonkey,

        I can't conclusively answer this question as I don't have access to any Solaris boxes anymore. However, here are concerns I'd have: 1) line-endings (record separators) may be different and cause issues. 2) there may be other unknown problems between versions of perl on the different platforms that may cause issues.

        My suggestion is to take a dev box, copy over a simple module, and test it. If that works, move up to something more complex.

        Although I have a lot of experience working on numerous platforms, I must admit that I don't have much experience on transferring Perl things from one to another manually. I've always used CPAN, or in the realm of my own modules, just kind of force-installed manually (where necessary).

        Why don't you give it a try with a module and let us know? Recently I did some extraction and re-insertion with Data::Compare which is (as far as structure goes) pretty basic. Install that on one box, then try migrating it over manually. It auto-imports so it's easy to test. Here's an example of how to test it:

        use Data::Compare; print Compare( [1, 2], [1, 2] );

        -stevieb

      Thank you for confirming Stevie. I got direction now :)
Re^3: Can Multiple perl versions coexist without effecting one another on Solaris?
by perlron (Pilgrim) on Oct 01, 2015 at 06:57 UTC

    For your reference Re: targetting for multiple perl versions, so that you read up about cpanm . Along with perlbrew its a hassle free way to manage your multiple perl installs. All the best

    The Great Programmer is one who inspires others to code, not just one who writes great code
      Thanks so much. Will try and post the results.