Tachyon,
Thanks for the reply. The problem is that these folk have been using Perl since 4.0 and they put their system together long ago without thinking of the consequences of their actions. Now they have a fairly significant amount of Perl code on about 20 client sites that needs to be kept in synch for maintainance purposes. So they are looking for a way to take advantage of say /usr/local/bin/perl rather than always having to rely on /MyDirectory/soft/perl.
I suppose the simplest thing might be to grep for the #! line at the top of each Perl script and change that line to the build on that particular client system. However that does have the potential to cause problems while they upgrade their code base periodically.
I am still curious to see if there is a way of getting the Perl script to look for other Perl builds on the system and use them instead - I suppose a CPAN module might do this?
I have built Perl a number of times before and then later wanted to move it to another directory (ran out of disk space, whatever...), I have found the most effective way of doing it was to delete Perl and reinstall it. Simply moving it screwed up relationships to modules, man pages etc. Perl must keep the information on the $PERL_BIN, $PERL_LIB, $PERL_MOD somewhere, do you know of any environmental options that might be tinkered with to allow for the Perl directory to be moved somewhere else?
Thanks for your help.
MadraghRua
yet another biologist hacking perl....
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.