On 9/5/05, Ingo Blechschmidt <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> quick questions:
> 
>     constant pi = 3;      # works
>                           # Is &pi package- or lexically-scoped?
> 
>     our constant pi = 3;  # legal?
> 
>     my  constant pi = 3;  # legal?

Yep.  Bare constant is package, just like everything else bare
(including classes now, yay!).

> This is consistent with "sub foo", "our sub foo", and "my sub foo",
> which are all allowed.

Luke

Reply via email to