in reply to problem with system(), stdin, and stdout

That doesn't make much sense. 'somecmd' is a different command, and has its own stdin/stdout (and it's the shell that will do the redirection, not perl). Besides, just reading from stdin doesn't modify stdout.

Could you show us a small self contained program that shows this problem?

  • Comment on Re: problem with system(), stdin, and stdout