http://www.perlmonks.org?node_id=1033011


in reply to Leveraging centralised shared perl version?

What if you were to use #!/usr/bin/env perl as your shebang line. That will pick the appropriate Perl based on your $PATH configuration. You can then just let things go if you don't care which available Perl gets used, or tweak your $PATH to force the usage of a specific Perl installation without having to (futher) change scripts.

Christopher Cashell