Re: Syntax Error?



<g4173c@xxxxxxxxxxxx> wrote in comp.lang.perl.misc:

I doubt that TomC posted that code. "system" cannot be followed
by a block, that's a syntax error by itself. Please give a reference.

Anno
Hi

I searched for "exit status from system with tee" and got the
following message, which that code
was at the bottom:

http://groups.google.com/group/comp.lang.perl.misc/browse_thread/thread/ea4ec21762f245ab/a7b6faac68ee60d6?lnk=gst&q=exit+status+from+system+with+tee&rnum=1&hl=en#a7b6faac68ee60d6

Ugh. That's a thread of 6 articles, none of which is by Tom
Christiansen. It took me a while to find that what you mean is
a posting by Charles DeRykus who quotes TomC's solution.
Unfortunately there's a typo -- there should be a "q" before
the first "{", making quoted text out of what looks like a bare
block. Change that and the code will run -- whatever it is
supposed to do.

Anno
.



Relevant Pages


Loading