On Tue, 4 Dec 2001, Stas Bekman wrote: > Actually, we don't have to run -t to test for failure, since the normal > execution fails as well and for all cases (not only syntax errors). The > problem is that we run: > > system "command &";
we can run "$cmd -t|" before that and check if the output contains "Syntax OK" or not.