Skip to content

Commit b0ec7cb

Browse files
committed
make examples work
1 parent 259473f commit b0ec7cb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/Language/5to6-perlop.pod6

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,10 @@ by L<ff|/routine/ff> and L<fff|/routine/fff> respectively.
186186
The conditional operator C<? :> has been replaced
187187
by C<?? !!>:
188188
189-
=begin code
189+
=for code :lang<perl5>
190190
$x = $ok ? $yes : $no; # Perl 5
191+
=for code :preamble<my $x;my $ok;my $yes;my $no>
191192
$x = $ok ?? $yes !! $no; # Perl 6
192-
=end code
193-
194193
195194
=head2 Assignment Operators
196195

0 commit comments

Comments
 (0)