in reply to Using Perl, some Windows version and #!usr/bin/perl, WHY?

What's the sense of a shebang when it points to a directory that can't exist on your system?

Why can't it exist? My perl executable is in c:\usr\local\bin, which can be written as /usr/local/bin for programs that understand unix-style paths. Apache, for example, is such a program and it can find perl in the correct directory based on the shebang. Since my apache executable is also on the c: drive it assumes that root / is the same as c:\.

  • Comment on Re: Using Perl, some Windows version and #!usr/bin/perl, WHY?