|
From: George E. H. <ge...@fa...> - 2012-02-11 23:22:29
|
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 Tk
$self->{window}->after(1000, sub { $myotherobject->timerhandler(); });
--
http://www.fastmail.fm - Access all of your messages and folders
wherever you are
|