|laziness, impatience, and hubris|
Re: NEWBIE Brain Teaser #2, by nysusby snafu (Chaplain)
|on Apr 16, 2001 at 08:22 UTC||Need Help??|
Well, I cheated and ran the script to see what would happen.
But I will offer a guessed explanation.
The first script I ran was as is shown above. My output was:
B: I believe the output was this way because when the subroutine
C: On the other hand when you change the subroutine(); to &subroutine; it printed:
The reason this occurred is because when calling a subroutine
I admit, lexical scope vs dynamic scope is still confusing to me and