Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Re: Re: Using perl to call a shell command?

by MarkM (Curate)
on Mar 08, 2003 at 08:15 UTC ( [id://241354]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Using perl to call a shell command?
in thread Using perl to call a shell command?

The difference is that at one point in time, Perl fork() (different from C fork()) did not flush the handles, and any output sent after fork() may be flushed from both parent and child resulting in double output. system() never had this behaviour because system() was not implemented in terms of Perl fork() and Perl exec().

My real question to you is: What sort of buffering problem do you see $| = 1 solving for system() calls? I say none, and suspect you are referring to the earlier problems with Perl fork(). What say you?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://241354]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-26 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found