3
1
I have a unique problem... I develop Perl on a Windows machine, but my test/prod servers are AIX. I want to be able to test locally with an installation of Apache & Perl, but I don't want to have to change the #! line in all of my scripts to test locally, and then change them back to upload to the test server.
My question is this: can I create some type of shortcut/alias/whatever in Windows in the style of '/usr/bin/perl' that actually points to 'C:\ActiveState\Perl5.0.12\perl.exe' ?
I'm kind of lost on this, so any help at all is greatly appreciated. Thanks!
3To add - use
mklink
to create symlinks. – user1686 – 2011-06-30T20:29:57.1133
Alternatively, if you're using ModPerl, then on the Windows side this shouldn't matter (and the path in the first line of your Perl scripts can be wrong without causing any problems). The configuration for mod_perl2 that I'm using is described here (complete with configuration file examples): http://www.modperl.pl/how-to/
– Randolf Richardson – 2011-06-30T20:30:51.950