Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: POE::Component::IRC::Plugin Run a CMD All 5mins

by rcaputo (Chaplain)
on Feb 23, 2009 at 20:57 UTC ( [id://745832]=note: print w/replies, xml ) Need Help??


in reply to POE::Component::IRC::Plugin Run a CMD All 5mins

Since POE::Component::IRC::Plugin uses POE, you get all of POE's features "for free". This includes POE::Kernel's delay() method, which can be used to create a one-shot timer. For repeating timers, your one-shot handler should call delay() again to set up a new timer.

The first example at http://poe.perl.org/?POE_Cookbook/Recurring_Alarms should get you started.

  • Comment on Re: POE::Component::IRC::Plugin Run a CMD All 5mins

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-24 05:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found