Re: File Handle Pipes

2006-04-05 Thread David Wheeler
On Apr 4, 2006, at 21:41, $Bill Luebkert wrote: Have you tried something like my $process = '/path/to/process'; open IN, $process | or die open $process |: $! ($^E); while (IN) { print; } close IN; Ah, no, I haven't. I was trying to avoid shell interpolation. But you're right, it

Re: File Handle Pipes

2006-04-05 Thread Chris Wagner
At 10:30 PM 4/4/2006 -0700, David Wheeler wrote: Ah, no, I haven't. I was trying to avoid shell interpolation. But you're right, it just might be the simplest solution. If there are no shell metacharacters present, it won't start up a shell. So as long as the argument is a simple command,

File Handle Pipes

2006-04-04 Thread David Wheeler
Fellow Perlers, I have code that uses open() to open a file handle pipe to an external application so that I can then read from it line-by-line. Unfortunately, it doesn't work on Windows. Would some kind soul tell me the best way to create file handles on processes in Win32 Perl? I have

Re: File Handle Pipes

2006-04-04 Thread $Bill Luebkert
David Wheeler wrote: Fellow Perlers, I have code that uses open() to open a file handle pipe to an external application so that I can then read from it line-by-line. Unfortunately, it doesn't work on Windows. Have you tried something like my $process = '/path/to/process'; open IN,