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

Re: Forking Question

by mikfire (Deacon)
on Jun 14, 2001 at 09:22 UTC ( #88300=note: print w/replies, xml ) Need Help??

in reply to Forking Question

You may also want to check out IPC::Shareable or IPC::ShareLite if your system supports shared memory. I cannot claim to be conversant in either module, but it should be a fair fit for what you are trying to do. It would also eliminate the need to use pipes.

If you decide not to do this, I am uncertain if you really need two way pipes. It seems the communication needs to flow only from child to parent. You can do this with

open KID, "-|";
which will fork a child process off and connect the child's STDOUT to the named file handles.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://88300]
[Discipulus]: Eily this percentage get higher everyday i suppose
Discipulus sometimes i'm here alone with you, bony brother
[Discipulus]: ok a Perl one: how approach the task of getting all distinct paths from the edge to a node of a pascal triangle (nobackwards)?
[Discipulus]: each node has 2 descendants only: can i just compose hash keys usinng coords?
[karlgoethebier]: Discipulus: you shouldn't smoke turkish spices before noon
[Discipulus]: karl you says the same of my mom: in your place I'd been

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2018-03-19 10:53 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (239 votes). Check out past polls.