in reply to Re: Concurrent lexical scopes?
in thread Concurrent lexical scopes?
The namespace issue has nothing to do with the coderefsIt does because the 'lexical subs' are stored in coderefs which are just scalars and you can't have 2 scalars of the same name in the same lexical scope e.g
my $foo = "I'm a string"; # this will replace previous $foo my $foo = sub { "I'm a coderef" };
the problem is that lexical variables (and by abstraction lexical subs too) are not in any namespace at all!Yes they are and it is the current lexical scope's namespace (which is anonymous and inaccessible through straight perl).
_________
broquaint
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Concurrent lexical scopes?
by Joost (Canon) on Jun 11, 2002 at 14:00 UTC |