Nathan Wiger wrote:
>
> However, make lexicals the default so that MyPackage would have to look
> like this:
>
> package MyPackage;
>
> # my is redundant since lexicals are default
> my($internal1, $internal2) = ('value1', 'value2');
>
> # have to use your to give this variable to other packages
> your $DEBUG = 0; # $MyPackage::DEBUG now dynamic
how is "your" different from "our"?
use MyPackage;
our $DEBUG=1;
>
>
> I think something like this is a good idea. It's more intuitive too -
> hide your variables in your package unless you *want* to give others
> access to them.
>
> If you're going to write an RFC on this, cool. Otherwise I will, just to
> keep it interesting. In particular I've "fallen in love" with the
> "your()" keyword. :-)
maybe i missed something. is this really only "your" variable or do we have
access to it in "our" package when code is executing within it?
>
>
> -Nate
>
> 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
--
___cliff [EMAIL PROTECTED]http://www.genwax.com/