Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: Global vs. local?by jpavel (Sexton) |
on May 28, 2009 at 09:39 UTC ( [id://766616]=note: print w/replies, xml ) | Need Help?? |
This is what I initially tried - makes sense to me. In the context of this sub function, "variableMaxText" always gets called with no value getting passed. If I declare $j globally, then the last value of $j gets passed every time (e.g., if I have 5 of them, the value is always "4" no matter which GUI element makes the call).
In Section
Seekers of Perl Wisdom
|
|