in reply to cvs control/perl -c
This is explained in qx/STRING/ in perlop.my $rc = `$^X -c $_ 2>&1`; chomp $rc; unless ($rc eq "$_ syntax OK") { print "$rc"; $errors++; }
Otherwise you could examine the value of $? after using the backticks, see perlvar:
--my $rc = `$^X -c $_`; if ($?) { print "$rc"; $errors++; }
|
|---|