Use symlinks.
Example: Desired perl on AIX is /usr/my/shiny/AIX-Perl/bin/perl, desired perl on Linux is /opt/my-shiny-perl5/bin/perl. Create a symlink /usr/local/bin/my-shiny-perl on both systems, pointing to the former on AIX, to the latter on Linux. Change the shebang line to #!/usr/local/bin/my-shiny-perl.
Alexander
In reply to Re: Dynamically choosing the perl path
by afoken
in thread Dynamically choosing the perl path
by dumb_fellow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |