RosettaCodeData/Task/Inverted-syntax/Perl/inverted-syntax-2.pl
2023-07-01 13:44:08 -04:00

4 lines
213 B
Raku

# Note that the results obtained by the inverted syntax form
# may produce differing results from the traditional syntax form
$a = $ok ? $b : $c; # Traditional syntax
($ok ? $b : $c) = $a; # Inverted syntax