Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Weird open() return code in pipe mode

by duff (Parson)
on Sep 21, 2007 at 04:08 UTC ( #640259=note: print w/replies, xml ) Need Help??

in reply to Weird open() return code in pipe mode

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.

  • Comment on Re: Weird open() return code in pipe mode

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://640259]
[marto]: nice
[choroba]: New blogpost after a long pause!
marto needs to think of a joke where the punchline is "why the long paws?"

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2018-03-20 16:26 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (254 votes). Check out past polls.