open -| issue

2010-10-20 Thread p sena
I have an issue seen from the below piece of code i a program- In some iteration below code is there in a program>> open OUT, '-|', 'program001.pl', '--field=4,5', '--match=3,80', "--host=$host" or die "Couldn't run program001.pl: $!"; ## if some print of $? & $?>>8 done h

RE: Win32::Pipe::CallNamedPipe does this function normally work?

2010-10-20 Thread Jan Dubois
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

Win32::Pipe::CallNamedPipe does this function normally work?

2010-10-20 Thread Greg Aiken
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

Win32::Pipe anyone use this module regularly, and fully understand it?

2010-10-20 Thread Greg Aiken
new($Name [, $Timeout [, $Type [, $Permissions ] ] ) Creates a named pipe if used in server context or a connection to the specified named pipe if used in client context. $Type can be consist of one value logically ORed from both tables: Pipe Types: PIPE_TYPE_MESSAGE Data will move across

RE: lame question "\\\\.\\pipe\\pipename" vs '\\.\pipe\pipename'

2010-10-20 Thread Brian Raven
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Greg Aiken Sent: 20 October 2010 18:10 To: perl-win32-users@listserv.activestate.com Subject: lame question ".\\pipe\\pipename" vs '\\.\pipe\pipename' > forgive my ig

RE: lame question "\\\\.\\pipe\\pipename" vs '\\.\pipe\pipename'

2010-10-20 Thread Jan Dubois
>From `perldoc perldata`: String literals are usually delimited by either single or double quotes. They work much like quotes in the standard Unix shells: double-quoted string literals are subject to backslash and variable substitution; single-quoted strings are not (e

RE: lame question "\\\\.\\pipe\\pipename" vs '\\.\pipe\pipename'

2010-10-20 Thread Steve Howard
There's a pretty good explanation of it here: http://en.wikibooks.org/wiki/Perl_Programming/Strings Specifically this part: * The sequence \' yields the character ' in the actual string. (This is the exception we already discussed above). * The sequence \\ yields the character \ in the

Re: lame question "\\\\.\\pipe\\pipename" vs '\\.\pipe\pipename'

2010-10-20 Thread will trillich
Here's my take: print 'it\'s time \\ to go'; The backslash can quote the single-quote, and hence another backslash as well for completeness, within a single-quoted string. On Wed, Oct 20, 2010 at 12:09 PM, Greg Aiken wrote: > forgive my ignorance here, but I thought single quoted, or apostro

lame question "\\\\.\\pipe\\pipename" vs '\\.\pipe\pipename'

2010-10-20 Thread Greg Aiken
forgive my ignorance here, but I thought single quoted, or apostrophized [however you call this character] (') text strings were supposed to be interpreted by perl in an unaltered manner. sample code, indicating how to reference a named pipe in the Win32::Pipe module, shows something like this.