The subroutine is not called directly, but rather dispatched by the Win32::GUI event model.
How is the sub accessed by the event handler?
Ignoring that there are better ways to handle event definitions altogether, that's an argument for doing precisely what jpavel does.
No, it's not. Polluting the name space with funny things is not a good idea. I don't know about Win32::GUI, but I guess it uses coderefs rather than typeglobs. If it doesn't, then I hope for never needing to look at that module.
In reply to Re^3: Global vs. local?
by shmem
in thread Global vs. local?
by jpavel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |