home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!gatech!darwin.sura.net!uvaarpa!mmdf
- From: Studentbladet <stbl@otax.tky.hut.fi>
- Subject: Re: #! Emulation in MSDOS
- Message-ID: <1992Aug14.163641.29782@uvaarpa.Virginia.EDU>
- Sender: mmdf@uvaarpa.Virginia.EDU (Mail System)
- Reply-To: stbl@otax.tky.hut.fi
- Organization: The Internet
- Date: Fri, 14 Aug 1992 16:36:41 GMT
- Lines: 29
-
- *** Quoting Mark C. DiVecchio (K3FWT) in Digest #497:
- > 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;
- <rest omitted>
-
- As a general tip, using DOS without 4DOS seems like a braindead thing to
- do. This is an unsponsored plug.
-
- In 4dos, you just need declare
-
- SET .PL=c:\bin\perl.exe
-
- and wallah, all files with the .PL extension will be invoked via your
- Perl interpreter. You won't need the #! stuff (but it won't hurt if you
- have it).
-
- Go on, flame me. :-)
-
- /* era */
-
- --
- era is actually Robin "era" Eriksson, B}tsmansgatan 19 B 32, 00150 H:fors
- Finger stbl@otax.tky.hut.fi for info about deadlines, addresses & such
- .ObDiscl: I rarely know what I'm doing .ObQuote: <none> .ObHack: (bool) 1
-