Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Structure (timer) calling a method regularly in case of inactivity

by GrandFather (Saint)
on Jul 27, 2007 at 23:42 UTC ( [id://629228]=note: print w/replies, xml ) Need Help??


in reply to Structure (timer) calling a method regularly in case of inactivity

There are a number of ways of achieving that sort of timed polling, but the best choice depends a lot on what else the application is doing and what else it interacts with.

You could use Tk (Tk's with timer driven events) or POE (about which I know very little). You could hand roll a polled loop using a queue to manage events and sleep to wait until the next even is due.

If you show us a sketch of your code we may be able to help a little more.


DWIM is Perl's answer to Gödel
  • Comment on Re: Structure (timer) calling a method regularly in case of inactivity

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://629228]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2025-03-17 08:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (54 votes). Check out past polls.