in reply to Subroutines not working right
Anyway,
onClick => &Button_Click(1)
is probably not what you want. That will pass the return value of the call to Button_OnClick(1). If you want to pass a reference to a function, use -onClick => \&Button_OnClick.
I'm not sure that -onclick is even a valid argument, but then again, I don't know Win32::GUI. You may want to re-read the documentation.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Subroutines not working right
by stringplayer92 (Initiate) on Feb 21, 2008 at 23:48 UTC | |
by ikegami (Patriarch) on Feb 22, 2008 at 00:02 UTC | |
by Joost (Canon) on Feb 22, 2008 at 00:00 UTC | |
by stringplayer92 (Initiate) on Feb 22, 2008 at 00:08 UTC | |
by thundergnat (Deacon) on Feb 22, 2008 at 01:40 UTC |