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
In reply to Re: Re: Concurrent lexical scopes?
by broquaint
in thread Concurrent lexical scopes?
by broquaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |