[users@httpd] switching between two different perl versions

2013-01-15 Thread Lentes, Bernd
Hi, we have a problem. We want to test perlscripts in apache with two different perl versions. The two versions don't have to exist concurrently, a manual switching between them is sufficient. Any ideas ? Bernd -- Bernd Lentes Systemadministration Institut für Entwicklungsgenetik Gebäude

Re: [users@httpd] switching between two different perl versions

2013-01-15 Thread Igor Cicimov
2013/1/15 Lentes, Bernd bernd.len...@helmholtz-muenchen.de Hi, we have a problem. We want to test perlscripts in apache with two different perl versions. The two versions don't have to exist concurrently, a manual switching between them is sufficient. Any ideas ? Bernd -- Bernd

Re: [users@httpd] switching between two different perl versions

2013-01-15 Thread Igor Cicimov
Alternatively create a symbolic link and use it as shebang in your perl cgi scripts. You can switch the symlink then to what ever location you want. Example: # ln -s /usr/sbin/perl /usr/sbin/my_perl In the cgi scripts the shebang: #!/usr/sbin/my_perl Test it. Then switch to the other perl