Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Weird open() return code in pipe mode

by duff (Vicar)
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://640259]
help
Chatterbox?
[stevieb]: I am thankful that I fell into Perl years ago in the manner I did. I don't believe there is another language that people care about so much, that they're willing to give everything. Langs come and go, but in Perl, it seems, things remain consistent.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2017-02-25 01:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (364 votes). Check out past polls.