On Jul 25, 2013, at 9:11 PM, David Golden <xdg@xdg.me> wrote: >> This works, of course: >> >> if (my $f = 1) { >> say $f; >> } > > Yes, despite parens, the "my $f" is outside the *block* defined by the braces. Which is not the same as `for my $f () {}`, which is the only place that has the block-scoped lexical declaration outside the block or the parens. DavidThread Previous | Thread Next