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

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 gai...@visioninfosoft.comwrote: forgive my ignorance here, but I thought

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

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

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

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

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:

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