I tried this out, and I'm not 100% certain why I got what I did (#20
release):

Code:

 my $x = \(-> { say "Perl 6" }); say $x();

Output:

 Perl 6
 1

First off, why can I invoke a capture when it contains a lambda? Shouldn't I
get an error, here?

Second, why the 1? Is that the return value of the lambda?

Reply via email to