$ perl6 -e 'sub f { 3 }; sub g($a) { $a }; if my $x = f() and g($x) { +say "works" }' works
In reply to Re: scope of my $x in if statements
by moritz
in thread scope of my $x in if statements
by perl5ever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |