Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!ukma!usenet.ins.cwru.edu!ncoast!allbery From: allbery@NCoast.ORG (Brandon S. Allbery KB8JRR) Newsgroups: comp.lang.perl Subject: Re: MS Perl Questions Message-ID: <1991Mar8.012758.22993@NCoast.ORG> Date: 8 Mar 91 01:27:58 GMT References: <1991Mar1.041441.4810@ccu1.aukuni.ac.nz> <1991Mar3.030351.24749@tc.fluke.COM> Reply-To: allbery@ncoast.ORG (Brandon S. Allbery KB8JRR) Followup-To: comp.lang.perl Organization: North Coast Public Access Un*x (ncoast) Lines: 26 As quoted from <1991Mar3.030351.24749@tc.fluke.COM> by dcd@tc.fluke.COM (David Dyck): +--------------- | In article <1991Mar1.041441.4810@ccu1.aukuni.ac.nz> russell@ccu1.aukuni.ac.nz (Russell J Fulton;ccc032u) writes: | >@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 requires MS-DOS 3.3; I don't know if @ still works in 4.x or not, but I suspect it does. (The usual use is to have "@echo off" as the first line of a .BAT file, so the file doesn't advertize itself to the screen.) The "if 0;" is unnecessary. All Perl sees is an assignment of a single- element list to an array (`@REM=("string");'). BTW, the "0%" should be "%0". ++Brandon -- Me: Brandon S. Allbery VHF/UHF: KB8JRR on 220, 2m, 440 Internet: allbery@NCoast.ORG Packet: KB8JRR @ WA8BXN America OnLine: KB8JRR AMPR: KB8JRR.AmPR.ORG [44.70.4.88] uunet!usenet.ins.cwru.edu!ncoast!allbery Delphi: ALLBERY