Newsgroups: perl.perl6.language
From: t...@sage.org (Trey Harris)
Date: Sun, 18 Apr 2004 12:47:36 -0700 (PDT)
Local: Sun, Apr 18 2004 3:47 pm
Subject: placeholder attachment?
Can anyone explain the rules of placeholder attachment? i.e., in the
example in Perl6::Placeholder's manpage, grep { $data{$^value} } 1..10; C<$^value> is clearly intended to attach to the outer closure C<{ It's easy to just say "don't nest placeholder-using closures," but that $sub = { if $^a { $^b = $^a } }; ? Are there two C<$^a>'s, one masking the other? Or just one? If two, $sub = ( if $^a { $^a = $^a } }; ? Or will Perl DWIM and attach both $^a and $^b to the outer sub? If so, I'm probably just confused here, but I'd appreciate some straightening Trey You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||