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
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
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
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
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
>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
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
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
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.