RosettaCodeData/Task/Inverted-syntax/Perl/inverted-syntax-2.pl

5 lines
213 B
Perl
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
# 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