. . . those are not globals, by the way . . .
OK, fine, in Perl, there technically aren't any global vars. There is just vars that have a really wide scope. However, for practical matters, widely scoped lexicals are global vars.
| [reply] |
Not really. "Global variable" means something specific in Perl: a variable like $SomePackagage::Foo or just $Foo that is declared without "my". They are global because any other package can see them and change them. Lexical (my) variables are not visible outside of their current scope. It's a significant difference.
| [reply] |