From: Jeremy W. <jez...@ho...> - 2012-02-15 14:13:58
|
> I ask because I want to use a package method rather than a sub in main. > Like you might say in Tk > > $self->{window}->after(1000, sub { $myotherobject->timerhandler(); }); Have a look at the NEM (new event model) as it allows you to associate subs refs to events. It's also faster. |