Re: Eliminate dynamic variables entirely?
[email protected] (Nathan Wiger) Mon, 14 Aug 2000 19:59:44 -0700
| Newsgroups | perl.perl6.language.strict |
|---|---|
| Message-ID | <[email protected]> |
> how is "your" different from "our"? > > use MyPackage; > our $DEBUG=1; There's a very subtle difference in the way symbol tables are maintained. our() doesn't actually put the variable in the symbol table directly. The basic difference between your() and our() would be: our() = package wide, lexical, NOT in symbol table your() = package wide, dynamic, IS in symbol table Now, whether or not this is a worthwhile distinction is up for discussion. Check out this link for more details: > > Here's a great p5p message on Perl lexicals vs. globals/dynamics: > > http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2000-05/msg00839.html