Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!mit-eddie!uw-beaver!fluke!dcd From: dcd@tc.fluke.COM (David Dyck) Newsgroups: comp.lang.perl Subject: Re: MS Perl Questions Message-ID: <1991Mar3.030351.24749@tc.fluke.COM> Date: 3 Mar 91 03:03:51 GMT References: <1991Mar1.041441.4810@ccu1.aukuni.ac.nz> Organization: John Fluke Mfg. Co., Inc., Everett, WA Lines: 30 In article <1991Mar1.041441.4810@ccu1.aukuni.ac.nz> russell@ccu1.aukuni.ac.nz (Russell J Fulton;ccc032u) writes: .... >Just one question. Is there and equivalent of #!.../perl for MS dos .bat files? ... >@REM=(" >@perl 0%.bat ... >@end=") > I have found that sometimes using 'exit' instead of 'end' works. also add "if 0;" to end of '@end' line. This may be msdos version specific. I have used it both ways on the appropriate versions of dos and it does work. I just ran this on my ms-dos pc. @REM=(" @c:\usr\perl %0.bat %1 %2 %3 %4 %5 %6 %7 %8 %9 @exit ") if 0; print "hello world\n"; you may want to use your correct path to perl, although I believe that @perl... will work well also. David Dyck dcd@tc.fluke.COM UUCP: {uunet,uw-beaver,decwrl,microsof,sun}!fluke!dcd