kamesh3183 has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I need to communicate between two processes one running VC++ application and one running a Perl script. I have choosen Named Pipes mechanism for IPC. VC++ application acts as a server(It reads messages from the pipe).
My question: Is there any CPAN module which provides functionality for writing to message oriented named opipes? I have gone through Win32::Pipe. But it can write only to byte oriented named pipes. Can any body suggest a module or a work around?
Kamesh

Replies are listed 'Best First'.
Re: IPC through Named Pipes
by Anonymous Monk on May 25, 2005 at 09:24 UTC
    use Win32::API
Re: IPC through Named Pipes
by revdiablo (Prior) on May 25, 2005 at 17:48 UTC

    I must be misunderstanding something here. In Unix, a named pipe can be used just like a plain file. To send, you open it for writing, and write some data to it. On the receiving end, it's opened for reading, and some data is read from it. It is a fairly simple but useful IPC mechanism. That means in your case, you should simply open the pipe for writing and print data to it.

    Maybe in Win32 land there is some additional structure, or perhaps some common conventions regarding the use of these primitives? If so, then my post may be partial or complete rubbish. If anyone knows, I'd be interested. :-)