S_Shrum has asked for the wisdom of the Perl Monks concerning the following question:
Okay, here's the idea (I don't know if this is possible but hey, what the heck):
I'm running Apache on Windows XP but my site is hosted on a machine running Linux. In order for my scripts to work on my XP box, my shebang line looks like:
#!c:/Perl/bin/perl
However, when I post my scripts to the host machine, the shebang line needs to be:
#!/usr/bin/perl
My question is: Is there a way to mimic/alias/redirect/*whatever* a *nix path to a user-defined Windows path? That way I could set up my machine to handle the *nix-based shebang line...sorta like:
"/usr/bin/perl = c:/Perl/bin/perl"
I'm getting tired of switching shebang lines around all the time in my scripts between here (my pc) and there (host pc).
TIA
======================
Sean Shrum
http://www.shrum.net
|
---|
Replies are listed 'Best First'. | |
---|---|
(wil) Re: How do I...Fool Windows into using *nix formatted shebang
by wil (Priest) on May 18, 2002 at 10:46 UTC | |
by S_Shrum (Pilgrim) on May 19, 2002 at 03:12 UTC | |
Re: How do I...Fool Windows into using *nix formatted shebang
by Dog and Pony (Priest) on May 18, 2002 at 11:10 UTC | |
by S_Shrum (Pilgrim) on Jul 18, 2002 at 22:47 UTC | |
Re: How do I...Fool Windows into using *nix formatted shebang
by rbc (Curate) on May 18, 2002 at 19:01 UTC |