I have the below scenario on Solaris 10 (both QA and Prod) in which I'm confused as to take which route and seeking help from monks here.

1) I need to modify one existing perl script say example.pl(there are 15 diff scripts running currently) to do the PGP encryption of the xml file and move to a diff directory for which I'm planning to use Crypt::OpenPGP 1.12 version from CPAN. But during installation this is asking for so many dependent modules to be installed aswell which is becoming so cumbersome and thinking there must a simpler way to do it and reached out here.

2) The default perl 5.8.4 that comes with solaris 10 is present in '/usr/bin/perl' and is not used by any perl scripts.

3) Another version of perl 5.10.1 is installed in the location '/tib/esb/Perl/bin' and a symlink is created under '/opt/esb/Perl/bin/perl' (installation is done by a diff user "perluser" and this new path is placed ahead of the default perl path) and this symlink location is referred in the shebag line of the scripts as '#!/opt/esb/Perl/bin/perl' and these scripts are invoked using cron job thru shell script which has invoking command as '/tib/company/bin/example.pl'

4) if we have to upgrade the existing 5.10.1 to 5.20.2 then we have do a thorough testing of rest of the scripts aswell which we are not going to touch and I'm afraid we dont have enough time to test all the scripts. So as a quick fix I'm thinking to install the latest version 5.20.2 in to a separate folder say '/tib/esb/Perl520' and then create a symlink and place it in '/opt/esb/Perl520/bin/perl' and then use in the shebang as '#!/opt/esb/Perl520/bin/perl' of the only one script example.pl that I'm planning on changing without effecting the other scripts. Then I wanted to invoke this script from shell command as '/tib/company/bin/example.pl' which is the location of this script on server.

5) Question - By doing this way should I expect any challenges going forward? With my approach would I be able to get what I'm looking for? It would be really helpful if someone can throw light on this.

FYI - I'm a newbie, so pls dont flame me.

In reply to Can Multiple perl versions coexist without effecting one another on Solaris? by newperlmonkey

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.