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++; }
In reply to Re: cvs control/perl -c
by jmcnamara
in thread cvs control/perl -c
by doorslam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |