in reply to capture output of perl -c scriptname

Have you tried to combine STDERR into STDOUT?
my $result=`perl -c compile.pl 2>&1 `;

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^2: capture output of perl -c scriptname
by cztmonk (Monk) on Jun 29, 2012 at 10:49 UTC

    This answers my question! Thank you very much...