At 12:13 PM 6/21/01 -0700, Randal L. Schwartz wrote:
>Me> main is the name of a namespace.
>
>You might as well say "main is a noun". It's about as meaningful.
>"main" is a package name, not a namespace. Packages distinguish the
>parts of a global symbol table, which is ONE namespace. $main::a and
>$foo::b are just two equally valid names in the one single global
>symbol table. To artificially distinguish those two as being members
>of seperate "namespaces" is to introduce confusion. Perhaps you are
>merely presenting the confusion you already have. :)
Quoth perlmod:
"Perl provides a mechanism for alternative namespaces to protect
packages from stomping on each other's variables. In fact, there's
really no such thing as a global variable in Perl. The package
statement declares the compilation unit as being in the given
namespace."
>These are points that either you don't have clear (from reading your
>stuff), or you are deliberately muddying, and I think with devastating
>results.
On the namespace point, seems a bit harsh given the precedent in the
documentation.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com