laziness, impatience, and hubris | |
PerlMonks |
Re^3: Synchronizing STDERR and STDOUTby nothingmuch (Priest) |
on Sep 21, 2006 at 18:37 UTC ( [id://574218]=note: print w/replies, xml ) | Need Help?? |
I was suggesting you remove a layer of abstraction - instead of keeping the stream loop inside of TAPx::Parser, let it remain outside so that it doesn't have to worry at all about blocking and synchronization and what not.
The POE part is just to demonstrate that this approach (push parsing) works well in more situations than stream based iterators (that is, streams are usable with push parsers, but not vice versa).
-nuffin zz zZ Z Z #!perl
In Section
Seekers of Perl Wisdom
|
|