in reply to Re^2: Global vs. local?
in thread Global vs. local?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Global vs. local?
by lodin (Hermit) on May 29, 2009 at 13:59 UTC | |
by shmem (Chancellor) on May 29, 2009 at 17:44 UTC | |
by Corion (Patriarch) on May 29, 2009 at 17:52 UTC | |
by shmem (Chancellor) on May 29, 2009 at 18:04 UTC |