home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / perl / 7714 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.2 KB  |  37 lines

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