Sprad has asked for the wisdom of the Perl Monks concerning the following question:
So the three variables get set, and that shows up fine. Then a function elsewhere in the module gets called. Immediately these variables become undefined. Nobody's redeclaring them, or even touching them. Upon returning to the original function, two of the three variables remain undefined. The third gets its original value back.
However, if I refer to the variables inside the called function (such as by printing them), they don't lose their values.
What gives?
---
A fair fight is a sign of poor planning.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Schrodinger's Variable
by Zaxo (Archbishop) on Jan 23, 2004 at 00:28 UTC | |
by Sprad (Hermit) on Jan 23, 2004 at 01:17 UTC | |
|
Re: Schrodinger's Variable
by Abigail-II (Bishop) on Jan 23, 2004 at 00:51 UTC | |
by Sprad (Hermit) on Jan 23, 2004 at 01:22 UTC | |
|
Re: Schrodinger's Variable
by Roger (Parson) on Jan 23, 2004 at 00:32 UTC | |
by Sprad (Hermit) on Jan 23, 2004 at 01:18 UTC | |
|
Re: Schrodinger's Variable
by ysth (Canon) on Jan 23, 2004 at 05:21 UTC | |
|
Re: Schrodinger's Variable
by etcshadow (Priest) on Jan 23, 2004 at 02:40 UTC |