in reply to scope of my $x in if statements
$ perl6 -e 'sub f { 3 }; sub g($a) { $a }; if my $x = f() and g($x) { +say "works" }' works [download]