Mail Archives: djgpp/1998/01/11/07:52:20
On Sat, 10 Jan 1998, Jude Dashiell wrote:
> #!/usr/local/bin/perl
> doesn't make much sense when perl actually lives in
> c:\djgpp\exe.
Actually, it does make sense: it makes your scripts portable to other
DJGPP machines and Unix platforms. When the library functions which
launch programs see a script with such a line, they will look along
the PATH when the executable (`perl' in this case) is not found in the
named directory (`/usr/local/bin' in this case). This feature is
disabled when the name of the interpreter includes a DOS-style drive
letter, so saying #!c:/djgpp/exe/perl.exe will produce a script that
runs only on a machine where Perl is installed in that directory.
This is described in detail in the library reference, btw (from the
DOS promt, type "info libc alpha spawn").
- Raw text -