David Golden <xdg@xdg.me> wrote on Thu, 25 Jul 2013 15:11:19 EDT: > On Thu, Jul 25, 2013 at 12:36 PM, David E. Wheeler <david@kineticode.com<SNIP> >> >> This works, of course: >> >> if (my $f = 1) { >> say $f; >> } >Yes, despite parens, the "my $f" is outside the *block* defined by the braces. So what? It's the topic, part of the topicalizer there. Makes perfect sense. Just like how for $x (@foo) { } only has $x work inside that block. It really does make sense this way. Taking that away was one of perl6's errors. --tom PS: For sufficiently liberal notions of work, inside, and block.Thread Previous | Thread Next