in reply to Re: Re: Help: STDOUT flaking out?
in thread Help: STDOUT flaking out?

you probably really want to just use backticks...
# send output to file ###either open (LOGFILE, ">$logfile") || die "could not open log\n"; print LOGFILE `$tabfile`; if($?) { print STDERR "$tabfile failed: $?\n"; return; } close(LOGFILE); ##or `$tabfile > $logfile`; if($?) { print STDERR "$tabfile failed: $?\n"; return; } ## end or print "foo1\n"; exit (0);

                - Ant

Replies are listed 'Best First'.
Re: *2nd problem solved* Help: STDOUT flaking out?
by P0w3rK!d (Pilgrim) on May 17, 2001 at 21:24 UTC
    Thank you. I removed the code which was screwing up STDOUT. It all works now. :)