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
In reply to How do I...Fool Windows into using *nix formatted shebang by S_Shrum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |