good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Dynamically choosing the perl pathby flexvault (Monsignor) |
on Jun 23, 2015 at 05:18 UTC ( [id://1131562]=note: print w/replies, xml ) | Need Help?? |
Welcome dumb_fellow, I have the same situation with AIX and Linux servers. I have found that the easiest method for me is to have the common shebang to be: You can use any name i.e. 'myGoodPerl', etc. This allows you to define using a symbolic link which Perl to use. The script is the same on all machines, but the symbolic link is set-up once. I hope I explained this properly, since I try not to use the AIX or Linux default Perls, but to always use a Perl that I compiled and installed. I never type 'perl', but always 'pyrperl', so on all machines I'm working with a known and tested Perl. YMMV. Regards...Ed "Well done is better than well said." - Benjamin Franklin
In Section
Seekers of Perl Wisdom
|
|