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 :)
In reply to Re: Using "Class Data as Package Variables" to hold a global
by brian_d_foy
in thread Using "Class Data as Package Variables" to hold a global
by wfsp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |