<[EMAIL PROTECTED]> wrote:
> @a = (1 .. 10);
> $a, $b, $c = @_;
>
> $c becomes 10. Should $c become 3 when my is placed before $a?
>
No. If my binds weaker than =, it would be
my $a, $b, $c = @_;
is the same as
my $a, $b, ($c = @_);
as the opposite of
(my $a, $b, $c) = @_;
or even
my($a, $b, $c) = @_; ## current syntax keeps working.
- Branden
- Re: Closures and default lexical-scope for subs Edward Peschko
- Re: Closures and default lexical-scope for subs Peter Scott
- Re: Closures and default lexical-scope for subs Nathan Wiger
- Re: Closures and default lexical-scope for subs Edward Peschko
- Re: Closures and default lexical-scope for subs Peter Scott
- Re: Closures and default lexical-scope for subs Edward Peschko
- Re: Closures and default lexical-scope for subs abigail
- Re: Closures and default lexical-scope for subs Nicholas Clark
- Re: Closures and default lexical-scope for subs Edward Peschko
- Re: Closures and default lexical-scope for subs abigail
- Re: Closures and default lexical-scope for subs Edward Peschko
- Re: Closures and default lexical-scope for subs abigail
- Re: Closures and default lexical-scope for subs Edward Peschko
- Re: Closures and default lexical-scope for subs Branden
- Re: Closures and default lexical-scope for subs Peter Scott
- Re: Closures and default lexical-scope for subs Branden
- Re: Closures and default lexical-scope for subs Bryan C . Warnock
- Re: Closures and default lexical-scope for subs Branden
- Re: Closures and default lexical-scope for subs Branden
