doorslam has asked for the wisdom of the Perl Monks concerning the following question:
$rc = `$^X -c $_`; chomp $rc; unless ($rc eq "$_ syntax OK") { print "$rc"; $errors++; }
I seem to be getting back an $rc of "$_ syntax OK\n" even after the chomp, however, for when it prints the $rc, it still has a newline.
Thanks for any suggestions,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cvs control/perl -c
by jmcnamara (Monsignor) on Feb 04, 2002 at 13:20 UTC | |
|
(tye)Re: cvs control/perl -c
by tye (Sage) on Feb 04, 2002 at 15:15 UTC | |
|
Re: cvs control/perl -c
by gellyfish (Monsignor) on Feb 04, 2002 at 13:18 UTC | |
by doorslam (Beadle) on Feb 04, 2002 at 13:32 UTC | |
by virtualsue (Vicar) on Feb 04, 2002 at 13:54 UTC |