Yep, that was it. The entire point was to be able to wrap the interactive version of aspell in a pipeline, i.e.
head filename | perl aspell_filter.pl | sort
or some such nonsense. The reason behind all of this is that the email client I'm trying to use these days for various reasons, Claws Mail, doesn't have a built-in spell checker on the Windows port. It does, however, have the ability to pipe all of the text of the email being worked on to the standard input of another program, then replace that email text with whatever comes out of the standard output. Hence the need for a wrapper to allow me to take in STDIN, work with it via console+keyboard, and pipe the results back out STDOUT. The hope was to be able to throw something together quick and dirty in 20 lines and be done with it. The reality has been anything but, and I think I'm on the verge of abandoning the project. furry_marmot's tip solved the immediate problem; I can now embed the program in a pipeline and it pops up a new console and works beautifully. But it's still not working from Claws, nor is
print "Results are:\n"; while (<>) { print; }
Leading me to believe that Claws's pipeline features are broken under Windows as well, thus defeating the point of the project. Still, thanks for the help. I'm sure I'll wind up needing that trick again at some point.

In reply to Re^2: Shelling a new process with console I/O in Windows by rgaddi
in thread Shelling a new process with console I/O in Windows by rgaddi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.