|We don't bite newbies here... much|
Using Perl, some Windows version and #!usr/bin/perl, WHY?by muba (Priest)
|on Mar 20, 2004 at 19:49 UTC||Need Help??|
muba has asked for the wisdom of the Perl Monks concerning the following question:
As you can all see, I am quite new to PerlMonks.
While just hanging around over here, checking some code left and right, reading some nodes and comments, I have seen a strange thing: code written for some Windows version, having this -or something similar- as the first line:
For goodness sake, why? What's the sense of a shebang when it points to a directory that can't exist on your system? What's the sense of a shebang if your shell does not support them?
Don't misunderstand me: I use shebangs myself too. They're for the CGI scripts I write to test things on/with my Win32 webserver (Xitami) and they look like: #!perl or #!d:\perl\bin\perl.exe so they do make sense.
But I just don't get in what other cases you would want to use a shebang. Oh yeah, maybe when you use cygwin. But then... why to /usr/bin/perl?