when I run this simple client program

 

use strict;

use warnings;

use Win32::Pipe;

my $Data;

Win32::Pipe::CallNamedPipe("\\\\.\\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", "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

Reply via email to