... myscript.pl,
old
new
does not affect the normal execution of the script ... when you want a specific version of perl to be used on myscript.pl, create a script wrapper that contains
export PATH=/cool/new/version/perl:$PATH
/path/to/myscript.pl
That way, other script calls remain unchanged, and they just use default perl, while the script launch shell executes the same myscript.pl script with the selected version of perl
source
share