Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!mcsun!hp4nl!targon!andre From: andre@targon.UUCP (andre) Newsgroups: comp.lang.perl Subject: Re: Perl script in Msdos batch file Message-ID: <1741@targon.UUCP> Date: 7 May 91 21:26:27 GMT References: <1740@targon.UUCP> Organization: Siemens Nixdorf Informationsystems BV.,SWZ, Vianen, the Netherlands. Lines: 25 In article roy%cybrspc@cs.umn.edu (Roy M. Silvernail) writes: >andre@targon.UUCP (andre) writes: >> Now that we have perl also running on msdos, I thought up a way to put >> perl script inside msdos batch files in the same way we do in sh scripts. >> Can it be done better or more elegant? (this works on msdos 3.3 >> script must be in your path, not just .) >Elegance, you say? Certainly, you can do it more elegantly... just use >4dos for your command interpreter, and do 'set .pl=c:\path\to\perl'. >Now, any filename ending in .pl will be submitted to perl. Will this also handle the optional flags that you five to perl like -e or -s ? And what about arguments ? I would like to get a msdos equivalent to the /bin/sh trick, just saying use another shell won't work for us, we use msdos (regretfully) and yes I know... the batch file that I now use is not elegant hence my question. -- The mail| AAA DDDD It's not the kill, but the thrill of the chase. demon...| AA AAvv vvDD DD Ketchup is a vegetable. hits!.@&| AAAAAAAvv vvDD DD {nixbur|nixtor}!adalen.via --more--| AAA AAAvvvDDDDDD Andre van Dalen, uunet!hp4nl!targon!andre