in reply to Global vs. local?
*$SUB = sub { variableMaxText($j); };
And you're done. This will create a closure, ie a subroutine that's "closed" over $j.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Global vs. local?
by jpavel (Sexton) on May 28, 2009 at 09:39 UTC | |
by moritz (Cardinal) on May 28, 2009 at 09:43 UTC |