Re: [perl-win32-gui-users] Overriding default sub names for events?

2012-02-15 Thread Jeremy White
> 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.

[perl-win32-gui-users] Overriding default sub names for events?

2012-02-15 Thread George Ellery Hale
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