in reply to Inter-process communication when using Expect.pm
It sounds like you're communicating with another computer, which almost certainly means using a socket. A pipe is just a pair of filehandles (one for reading, one for writing) tied together on a local machine.