laziness, impatience, and hubris | |
PerlMonks |
Re^2: Mixing asynchronous data feed with synchronous program flow controlby haukex (Archbishop) |
on Jan 02, 2020 at 09:11 UTC ( [id://11110867]=note: print w/replies, xml ) | Need Help?? |
Event-driven programming is just messy like this. It doesn't have to be, though, it's usually just that it requires more re-thinking of the structure of the code and scoping of variables, and thinking of everything in terms of events - IMHO Your Mother's instinct of "there must be a more elegant solution" was right :-)
In Section
Seekers of Perl Wisdom
|
|