IPC, buffering, and Win32

P

perl coder

I'm trying to run an external program in Windows (with ActivePerl),
using the piped-open method:

open (PIPE, $cmd_line);
while (<PIPE>) {
# process data
}

All is well and good when my code is run from a shell window, but when I
make a shell-less version (it's a Perl/Tk program compiled with the -gui
argument in perlapp), the data becomes buffered, and that really cramps
my style. :-(

I know that you can trick a program to believe it's running on a
terminal using IO::pty or Expect, but there doesn't seem to be a PPM for
those modules in ActivePerl 5.8! At least I don't see anything at
http://ppm.activestate.com/PPMPackages/zips/8xx-builds-only/Windows/
even though there seems to be compiled versions for Perl 5.6...

Did Perl 5.8 break those modules, or did they forget to compile them, or
are they available somewhere else?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top