in reply to Re^2: Bot::BasicBot forkit - help needed
in thread Bot::BasicBot forkit - help needed
Did you ever come up with a way to schedule multiple tasks? I was thinking of using tick to fork each task each with its own wait time. I think there is some logic problem there, but it's a start.
# psuedo sub tick { # stuff.... $self->forkit( run => \&task1, channel => $channel, arguments => [ $arg1, 20 ] ); # Where second arg is for a sleep. $self->forkit( run => \&task2, channel => $channel, arguments => [ $arg1, 40 ] ); # Where second arg is for a sleep.
Neil Watson
watson-wilson.ca
|
|---|