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 version: # rm my_perl # ln -s /location/of/the/other/perl /usr/sbin/my_perl and test again. Lot of different ways to do it ... 2013/1/16 Igor Cicimov <[email protected]> > > > > 2013/1/15 Lentes, Bernd <[email protected]> > > 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 35.34 - Raum 208 >> HelmholtzZentrum münchen >> [email protected] >> phone: +49 89 3187 1241 >> fax: +49 89 3187 2294 >> http://www.helmholtz-muenchen.de/idg >> >> Wenn ich eine Idee habe, sorge ich als Erstes dafür, daß die Buchhalter >> nichts erfahren. >> Sie sind der Totengräber jedes Traumes. >> Sir Richard Branson >> >> Helmholtz Zentrum München >> Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH) >> Ingolstädter Landstr. 1 >> 85764 Neuherberg >> www.helmholtz-muenchen.de >> Aufsichtsratsvorsitzende: MinDir´in Bärbel Brumme-Bothe >> Geschäftsführer: Prof. Dr. Günther Wess und Dr. Nikolaus Blum >> Registergericht: Amtsgericht München HRB 6466 >> USt-IdNr: DE 129521671 >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > Point the shebang in the top of the perl script to what ever version you > want. >
