in reply to Re: YAlQ: Yet Another local() Question.
in thread YAlQ: Yet Another local() Question.
Granted, when the anonymous subroutine that is referenced by $laddOne was created, the global value of $add was 1, but so what? That value isn't evaluated within the -dynamic- scope of the local.
I still don't see what I'm missing. Maybe I just came into the game late, and didn't have all the baggage associated with local() in my mind before the introduction of my(). I see local as "mask global variable" not as "create local variable". Your "counterexample" doesn't show where I'm wrong.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Re: YAlQ: Yet Another local() Question.
by jlistf (Monk) on Aug 03, 2000 at 18:38 UTC | |
by BlaisePascal (Monk) on Aug 03, 2000 at 18:45 UTC |