sub Button1_Click { # ...do something... }
Huh? That's definitely a valid subroutine proper, as opposed to sub 1Button_Click {} right? If the old model uses typeglobs but can resolve weird names, then there's messy-symbol-table-lookup and reference-taking-from-typeglobs going on under the hood without need (since sub references could be used as callbacks in the first place.) Not the kind of code I'd consider sane.
OTOH, if such weird lookup doesn't tale place, then your of of luck with subs constructed as the OP did, since illegal typeglobs aint for subroutine dispatch, only for internal variables.
In reply to Re^5: Global vs. local?
by shmem
in thread Global vs. local?
by jpavel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |