> 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.
Is there any way of overriding the default names for event subs? Eg if
I've created a timer named Tick, can I connect a sub with an arbitrary
name to the timer event instead of having to use Tick_Timer?
I ask because I want to use a package method rather than a sub in main.
Like you might say in T
2 matches
Mail list logo