The version of Win32::Pipe on CPAN (and in ActivePerl) may be a different version than the one mentioned on Dave’s website. You should check out the sample program included in Win32-Pipe to see how it works:
http://cpansearch.perl.org/src/JDB/Win32-Pipe-0.024/eg/ Cheers, -Jan From: [email protected] [mailto:[email protected]] On Behalf Of Greg Aiken Sent: Wednesday, October 20, 2010 1:50 PM To: [email protected] Subject: Win32::Pipe::CallNamedPipe does this function normally work? when I run this simple client program use strict; use warnings; use Win32::Pipe; my $Data; Win32::Pipe::CallNamedPipe("\\\\.\\Pipe\\EPICIPCDPLX <file:///\\\Pipe\EPICIPCDPLX> ", "3", $Data); print "data read from epic = $Data\n"; I get this error; Can't locate auto/Win32/Pipe/CallNamedPi.al in @INC (@INC contains: C:/Perl/site /lib C:/Perl/lib .) at C:\perlsrc\pipe\epic_item_import2.pl line 5 the online documentation http://www.roth.net/perl/pipe/#new() says; CallNamedPipe( $PipeName, $SendData, $RecieveData [, $TimeOut ] ) This function will connect to the specified named pipe ($PipeName) then it will send the the specified data ($TimeOut parameter is a value in milliseconds indicating how long the function waits to connect, to send and to recieve data. NOTE: This is not an object method. It can only be used as a function call as in: Win32::Pipe::CallNamedPipe( "\\\\server\\pipe\\My Named Pipe <file:///\\\server\pipe\My%20Named%20Pipe> ", "Test Data", $Data ); NOTE 2: The third parameter must be a scalar variable, not a reference nor a constant. Returns TRUE (1) if successful and FALSE (0) if it fails. but if I search Win32::Pipe.pm for ‘Callnamedpipe’ the string is not found anywhere in the c:\perl\site\lib\win32\pipe.pm file!
_______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
