Re: run an interactive command using POE::Wheel?

Scott Wiersdorf <[email protected]>
Newsgroups gmane.comp.lang.perl.poe
Message-ID <[email protected]>
On Fri, Sep 25, 2009 at 10:47:07AM +0800, woosley. xu. wrote:
> Still I don't know why I can not put a "\n" after each words,
> perldoc POE::Wheel::Run says *POE::Wheel::Run communicates with the
> child process in a line-based fashion by default*

If you look at the documentation for POE::Filter::Line, you might
notice that when each put() call is made, a newline (by default) is
added to the output. So in essence you've been adding extra newlines,
which has probably caused the problem.

Scott
-- 
Scott Wiersdorf
<[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.