How to make a dynamic "path to Perl" with mod_rewrite in Apache?
Posted on 2004-10-19
I have follow problem:
I work with a Apache server offline. When I create a new Perl project then I have to point in the Perl script to Perl.exe
for example "#!c:\xampp\perl\bin\perl.exe"
Later when I want upload the Perl project then I have to change in all scripts the path to perl, for example "#!/usr/bin/perl"
This process is very tiresome. I want change the path to Perl with the Apache Modul mod_rewrite dynamically.
The rewrite modul should change automatically all path to perl into "#!c:\xampp\perl\bin\perl.exe"
I would be very grateful, when some guy could help me!!
Thank you in advance!