Namespace vs. Scope
[email protected] (Jonathan Feinberg)
| Newsgroups | perl.trainers |
|---|---|
| Message-ID | <[email protected]> |
My students caught me off guard when they pointed out that sometimes I use the word "scope", as when I'm discussing my(), and that sometimes I use the word "namespace", as when I'm discussing packages. They wanted me to help them understand the difference, and I found myself nonplussed. I don't want to have to go into typeglobs and the package namespace hash, since they're not ready for those concepts. Is there any pithy way to distinguish between the two concepts? -- Jonathan Feinberg [email protected] Sunny Brooklyn, NY http://pobox.com/~jdf/