Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Re: Re: infinite loops == bad?

by Biker (Priest)
on Apr 24, 2002 at 15:55 UTC ( #161654=note: print w/replies, xml ) Need Help??

in reply to Re: Re: infinite loops == bad?
in thread infinite loops == bad?

Agreed, blakem.

What I like using that module is that I can:

my $th=Schedule::ByClock->new(12,33,55); # Some already defined values while(1) { $th->get_control_on_second(); work_hard(); if(condition()) { $th->get_control_on_second(42); # Special case. additional_work(); } }
which gives a very clean main logic. I'm sure that it can be built in many ways (TMTOWTDI) but I really like this module. It's hiding the implementation details in a clean way.
Everything went worng, just as foreseen.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://161654]
[erix]: true of life in general
LanX yeah if God had used GIT fromn the beginning ...
[LanX]: I'm working with legacy code which was ... ehm .. hacked long before I arrived here ...
[LanX]: ... try to explain to a "senior" that code which is "working" should be altered
[LanX]: hmm looks like the EU needs to prepare for a trade war with former allies ...
[erix]: lets boycott english

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2017-01-16 14:53 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (151 votes). Check out past polls.