in reply to Re^5: The weirdest problem with undef
in thread The weirdest problem with undef
But this still isn't doing what you are expecting. Not declaring those two variables would produce the same result (given the amount of code you have given). A local block is making a local copy of those global variables for use inside the block, but you are altering and accessing both variables outside of the block... It may behave as you expect, but it isn't doing what you think it is.
Update: When I said copy, I didn't mean the global values are retained. Wrong use of the word. I meant 'reset for use inside of the block.'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: The weirdest problem with undef
by davorg (Chancellor) on Dec 22, 2004 at 15:39 UTC | |
|
Re^7: The weirdest problem with undef
by insaniac (Friar) on Dec 22, 2004 at 14:41 UTC | |
by davorg (Chancellor) on Dec 22, 2004 at 15:30 UTC | |
by insaniac (Friar) on Dec 22, 2004 at 15:38 UTC | |
by perlguy (Deacon) on Dec 22, 2004 at 14:45 UTC |