Date: Sun, 11 Jan 1998 14:52:03 +0200 (IST) From: Eli Zaretskii To: Jude Dashiell cc: djgpp AT delorie DOT com Subject: Re: 3 perl questions In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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").