Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Value Fill

by moof1138 (Curate)
on Dec 23, 2002 at 01:56 UTC ( #221797=note: print w/replies, xml ) Need Help??

in reply to Value Fill

The Expect module mentioned above is the usually best approach for working with interactive processes. It is well designed for dealing with interactive processes, handling deadlocks and situations where you have some input that is expected, an unexpected error, or nothing at all returns.

Another way to work with interactive processes is IPC::Open2. Using IPC::Open2 will give you a read and a write handle to a process. It should be included as a standard module, so it does not require installing a new module. But using it can degenerate quickly if you get unexpected errors or no output from a program, so you need to program carefully to avoid deadlocks. I would recommend you use Expect if at all possible.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2020-05-29 19:12 GMT
Find Nodes?
    Voting Booth?
    If programming languages were movie genres, Perl would be:

    Results (170 votes). Check out past polls.