The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
[Originally posted by]

To All,
I have an application that exactly fits the I/O chaining and filter
requirements and principles discussed in chapter 2. I'm running the Perl on a
pc using Win2000.
I'm trying to do the following: " foo.txt |"
So far I have been unsuccessful in getting output from piped to Both and perform as expected when
run without the pipe. reads the input file from a filehandle using an explicit
open and a "while (<filehandle>smilie" loop rather than the diamond operator;
output is done via an implicit print to STDOUT. reads input
from STDIN in a while loop using the diamond operator.
When reviewing the log files generated during several runs, it appears
that the operating system launches first, then runs while waits. When finishes and
exits picks up and completes.
Has anyone seen this kind of response before? Does anyone know of a
solution or will I have to resort to creating an output file with and reading an input file with


import-bot (20211) [Avatar] Offline
Re: I/O Chaining
[Originally posted by dave]


I'm sorry, but I really don't know enough about how Windows interacts with
Perl to answer your question. I've just tried a quick test and it seemed to
work as I expected, but there could well be little "gotchas" under Windows
that I don't know about.

Can I suggest that you post your question at PerlMonnks
( You'll get a more informed answer there.

Sorry I can't be any more help.

import-bot (20211) [Avatar] Offline
Re: I/O Chaining
[Originally posted by]

Thanks for the quick response on my question; I'll take a look at perlmonks.