On Fri, Jan 25, 2002 at 11:43:46AM -0700, Keary Suska wrote:
> I just remembered: variables declared with my() are considered private to
> the package and cannot be accessed even by their full invocation:
> $package::foo ($::foo is shorthand for $main::foo).

Variables declared with my() are not in a package at all.  They are private
to the enclosing block or file (regardless of any package declarations).

The lexical $foo and the global $::foo are two completely separate
variables.

Ronald

Reply via email to