Welcome to the Monastery | |
PerlMonks |
Re: Weird open() return code in pipe modeby duff (Parson) |
on Sep 21, 2007 at 04:08 UTC ( [id://640259]=note: print w/replies, xml ) | Need Help?? |
At a guess, I'd say that when you add the string ">/dev/null", perl has to spawn a shell to make that work,so open returns the PID of that shell process. Without the ">/dev/null", perl probably just does a fork+exec(program). Again, just a guess.
In Section
Seekers of Perl Wisdom
|
|