in reply to Using "Class Data as Package Variables" to hold a global
By scoping the variable to the file (or class), it's no longer global. Only things in that same file can access it. Some situations can naturally use a file scoped lexical variable: it's the same argument as class versus instance data in other languages.
Good luck :)
|
|---|