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.
In reply to Re: Subroutines not working right
by Joost
in thread Subroutines not working right
by stringplayer92
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |