I’ve used Perlbrew to install Perl 5.14.2 in my home directory, as the Dreamhost-installed version (5.10.0) is too old to be able to run the current versions of Mojolicious. If I enter the shebang as “#!/home/virtualwolf/perl5/perlbrew/perls/current/bin” everything works fine.
The problem is that I’m doing development not solely on Dreamhost, and obviously that path to Perl doesn’t exist elsewhere. On my Linode I’ve added the Perlbrew installation at /opt/perl5/perls/current/bin to Apache’s $PATH so I’m able to use “#!/usr/bin/env perl” as the shebang there, but I’m completely stumped as to how to get my local Dreamhost installation of Perl into Apache’s path so I don’t have to change the shebang on every machine . It appears that the SetEnv directive in .htaccess won’t let you override the path.
Any help or workarounds would be greatly appreciated, thanks in advance!