[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: scared of our()



On Thu, 13 Jan 2000 19:29:54 EST, Chris Nandor wrote:
>perl -Mstrict -wle 'our $foo = 1; print $foo; package Foo; print $foo'
>
>One might expect that to print 1 twice, or to die.  It does neither.  It
>first prints $main::foo, then $Foo::foo.  I don't like this.  It scares me.

I think the plan is to "pin" the variable at the point where it was
declared (which means you ought to get "11" when it is fixed).  We just
haven't done it yet.


Sarathy
gsar@ActiveState.com


References to:
Chris Nandor <pudge@pobox.com>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]