home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!mcsun!sunic!ugle.unit.no!alf.uib.no!buboo
- From: buboo@alf.uib.no (Ove Ruben R Olsen)
- Subject: Re: How to run a Perl under DOS?
- Message-ID: <1993Jan8.032628.1949@alf.uib.no>
- Organization: University of Bergen, Norway
- References: <1993Jan6.211929.169@kocrsv01.delcoelect.com>
- Date: Fri, 8 Jan 93 03:26:28 GMT
- Lines: 21
-
- Mike Scheidler writes:
-
- >Could someone shed some light on how to execute a script using one of
- >the DOS ports of perl?
- >
- >I've seen an example somewhere which wraps the invocation of PERL.EXE into
- >a .BAT file (using %0 through %9 to pass any parameters), but it doesn't
- >seem to exit cleanly for me when using DOS 5.0.
-
- We use this for DOS-5.00:
-
- @REM = (qq:
- @echo off
- perl %0.bat %1 %2 %3 %4 %5 %6 %7 %8 %9
- @end :) ;
- # End of #! emulation for MS-DOS perl.
-
-
- \Ruben.
- (Want's to replace c:\command.com with c:\bin\perl)
-
- --
- Ove Ruben R Olsen a Gnarfer and VI user. EMAIL: ruben@uib.no.
- Maintaining the EX/VI-archive and a couple of the Comp.Editors FAQs.
- People that are ignorant tend to live a frustrated life, at least when
- it comes to editing - But I do belive this is a general rule in life
-