in reply to Re^4: A 'print' at one spot changes a value at another
in thread A 'print' at one spot changes a value at another
Is this not a third reason? If so, perldiag should be fixedI don't think so. The two fundamantal causes of the warning are that the variable doesn't yet exist, or that it exists but has gone out of scope. The OP's code is trying to access a variable that has gone out of scope - ie a file-scoped lexical that goes out of scope at the end of executing the require'd file
Dave.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: A 'print' at one spot changes a value at another
by ysth (Canon) on Aug 15, 2005 at 13:38 UTC |