home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!ftpbox!mothost!merlin.dev.cdx.mot.com!fendahl.dev.cdx.mot.com!mcook
- From: mcook@fendahl.dev.cdx.mot.com (Michael Cook)
- Subject: Re: #! Emulation in MSDOS
- Message-ID: <mcook.713708799@fendahl.dev.cdx.mot.com>
- Sender: news@merlin.dev.cdx.mot.com (USENET News System)
- Nntp-Posting-Host: fendahl.dev.cdx.mot.com
- Organization: Motorola Codex, Canton, Massachusetts
- References: <1992Aug13.044323.1094@silogic.uucp>
- Date: Thu, 13 Aug 1992 12:26:39 GMT
- Lines: 27
-
- markd@silogic.uucp (Mark C. DiVecchio (K3FWT)) writes:
-
-
- >In a recent posting, I saw a reference to #! emulation in MSDOS. The
- >posting showed a code fragment which was to be place at the front of the
- >file:
- >
- >@REM=(qq!
- >@echo off
- >perl %0.bat %1 %2 %3 %4 %5 %6 %7 %8 %9
- >@goto end :) if 0;
-
- >After trying this, it became obvious that a line or two is required at
- >the end of the file after the Perl code. I'm not versed enough in Perl
- >to figure out the lines at the end.
-
- >Can anyone help?
-
- (You probably want @REM=(qq: instead of @REM=(qq! .)
-
- Let's see... you'd want to have ":end" at the end of the file. How about
- this:
-
- REM ? 1
- :end ;
-
- Michael.
-