Do you know where your variables are? | |
PerlMonks |
POE::Wheel::ReadWrite: "low priority" eventsby vlad_s (Novice) |
on Jan 20, 2012 at 16:17 UTC ( [id://948985]=perlquestion: print w/replies, xml ) | Need Help?? |
vlad_s has asked for the wisdom of the Perl Monks concerning the following question: Hi, I'm writing a POE-based application that should do the following:
In other words I'd like to ensure that my generated events make their way into the event queue before the "next line available" event arrives from ReadWrite. This doesn't seem to be the case if I use post() or yield() for generated events. One solution that seems possible would be using POE::Kernel::call() rather than post(). In that case the InputEvent handler won't return until all processing is done. However, for certain reasons this approach doesn't work for me and I'd like to use post(). To illustrate the isssue, here's a simple piece of code:
If I feed a 5-line file to this script, the following gets printed:
Whereas what I want is:
Anybody aware of an easy way of doing it?
Back to
Seekers of Perl Wisdom
|
|