in reply to capture output of perl -c scriptname

Why is the output always going to stdout?
It is not. It goes to STDERR, as you have experienced.
  • Comment on Re: capture output of perl -c scriptname

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

    Thank you for this, I updated my question. Why can't I get the result into $result?