in reply to my $var masked across package scope?

Yes, this is expected.

Update

but my explanation was wrong. Please see the following node for enlightenment.

Cheers,
R.

Pereant, qui ante nos nostra dixerunt!
  • Comment on Re: my $var masked across package scope?

Replies are listed 'Best First'.
Re^2: my $var masked across package scope?
by choroba (Cardinal) on May 09, 2013 at 13:37 UTC
    my variables are kept in a table local to the package in which they are created
    Not true. There is block scope and file scope, no package scope. See also Packages, scope, and lexical variables.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ