Think about Loose Coupling | |
PerlMonks |
Re: IO::Socket client does not detect when server network connection diesby sundialsvc4 (Abbot) |
on Jul 12, 2011 at 13:21 UTC ( [id://913916]=note: print w/replies, xml ) | Need Help?? |
Logic like this is sometimes well designed using Finite State-Machine (FSM) logic ... for which there are, of course, Perl packages (if you can’t find a package that is even-more well suited to your purposes). I have found this approach to be very well-suited to ironing out the complexity from otherwise-ornery algorithms that need to “react to” unpredictably changing conditions.
In Section
Seekers of Perl Wisdom
|
|