1parrota (>>), Carl (>):
>> $ perl6 -e 'say "Yo"; if !{...}  { say "Bye"} '
>> Yo
>> $ perl6 -e 'say "Yo"; if {...}  { say "Bye"} '
>> Yo
>> Bye
>> #       The opposite to what I'd expect, if ... returns failure
>
> Same base cause as your first example above. Similarly wrong.

Oops, I jumped the gun on this one, and sorear++ got it right in the
twin thread. The block is never exectured, but instead evaluated for
truth qua block. Blocks are always true, hence the above (correct)
results.

// Carl

Reply via email to