It might be that you have something other than the value of $/ at the end of the line - what OS are you running this on ? You could determine what is on the end of the line by redirecting the output to a file and examining it with od or its moral equivalent.
Of course it is only the 'Syntax OK' message that is going to STDOUT - as jmcnamara points out any error messages will go to STDERR so you should arrange for that to be redirected
You also might want to consider examining $? rather than comparing the output string so your test would become :
if ( $? ) { print $rc; $errors++; }
/J\
In reply to Re: cvs control/perl -c
by gellyfish
in thread cvs control/perl -c
by doorslam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |