Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^2: Run code every 6seconde

by CardinalNumber (Prior)
on Dec 05, 2011 at 20:32 UTC ( #941915=note: print w/replies, xml ) Need Help??

in reply to Re: Run code every 6seconde
in thread Run code every 6seconde

Whew! This is a great example of why I never used POE. Fortunately, Reflex hides most of… that:
use 5.010; use Reflex::Interval; my %events; $events{func1} = Reflex::Interval->new(interval => 1, on_tick => sub { say 'I am function 1!' } ); $events{func2} = Reflex::Interval->new(interval => 1, on_tick => sub { say 'I am function 2!' } ); Reflex->run_all;
Edit: ++ for the AnyEvent example above too.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://941915]
[Discipulus]: I miss a bit the sunny balconny of my previous flat.. but since june to september is better facing north
[Corion]: Discipulus: Yeah, I can see that reasoning :) But spending 5 minutes in the sun today quite improved my mood :)

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2018-03-21 11:30 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (267 votes). Check out past polls.