Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!iwarp.intel.com!news From: merlyn@iwarp.intel.com (Randal Schwartz) Newsgroups: comp.lang.perl Subject: Re: Recent patches Message-ID: <1990Aug23.035932.2286@iwarp.intel.com> Date: 23 Aug 90 03:59:32 GMT References: <1990Aug22.062517.25360@iwarp.intel.com> <18PBo1w162w@cybrspc> Sender: news@iwarp.intel.com Reply-To: merlyn@iwarp.intel.com (Randal Schwartz) Organization: Stonehenge; netaccess via Intel, Beaverton, Oregon, USA Lines: 29 In-Reply-To: cybrspc!roy@cs.umn.edu (Roy M. Silvernail) In article <18PBo1w162w@cybrspc>, cybrspc!roy@cs (Roy M. Silvernail) writes: | > perl -ne 'print "$ARGV: $_" if /^Subject:/; close(ARGV) if /^$/' * | OK, I'm a Perl novice (MS-DOS version, PL18, 4dos), but this line gives | me a problem. Perl hands me | | Can't open perl script "$ARGV: $_": No such file or directory | | when I try it. I have also tried under command.com, and I diddled with | whitespace and paramaters (-n -e, and so on), but no dice. Is this just | the DOS curse? I suspect it is, since you said it works if you put it into a file. Too bad. I ran the line right from my emacs buffer to test it, so I *know* it works fine under a *real* shell. :-) I'd guess your shell is completely ignoring the single quotes, because that's the sort of error you'd get from a real shell if you left the single quotes off. Too bad (he mutters again). Doesn't BASH work under Messy-Dos? (I don't touch anything that has a braindamaged 4004-upward-compatible segmented chip in it, so I couldn't tell you.) print "Just another Perl [book] hacker," # sorry... I'll think of something else soon -- /=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\ | on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III | | merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn | \=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/