Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!caen!news.cs.indiana.edu!msi.umn.edu!cs.umn.edu!cybrspc!roy From: roy%cybrspc@cs.umn.edu (Roy M. Silvernail) Newsgroups: comp.lang.perl Subject: DOS, 4dos and Perl Message-ID: <6JDH11w164w@cybrspc> Date: 16 Apr 91 05:10:28 GMT Organization: Villa CyberSpace, Minneapolis, MN Lines: 15 I don't know why I never thought of this before... Instead of the kludgy batchfile wrapper for DOS Perl programs, 4dos users have another option. I happened across it in the 4dos TFM just now. 4dos allows you to declare other executable extensions with a simple environment variable! I already give my Perl programs a .pl extension, so I simply had to 'set .pl=c:\mybin\perl.exe' and my Perl scripts are now automagically executable. 4dos even searches the path for the executable. -- Roy M. Silvernail -- roy%cybrspc@cs.umn.edu - OR- cybrspc!roy@cs.umn.edu perl -e '$x = 1/20; print "Just my \$$x! (adjusted for inflation)\n"' [space reserved for clever quote]{mail your submissions}