perlquestion
muba
As you can all [muba|see], I am quite new to PerlMonks.<BR>
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:<BR>
<CODE>#!usr/bin/perl</CODE><BR>
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?<BR><BR>
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 (<A href='http://www.imatix.com'>Xitami</A>) and they look like: <CODE>#!perl</CODE> or <CODE>#!d:\perl\bin\perl.exe</CODE> so they do make sense.<BR><BR>
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?