From d3e1cd0053c97db4dd6587a0975946c3b75f0696 Mon Sep 17 00:00:00 2001 From: "Will \"Coke\" Coleda" Date: Mon, 4 Jun 2018 08:40:47 -0400 Subject: [PATCH] fix some compilation issues --- doc/Language/5to6-nutshell.pod6 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/Language/5to6-nutshell.pod6 b/doc/Language/5to6-nutshell.pod6 index d5121f214..29886234f 100644 --- a/doc/Language/5to6-nutshell.pod6 +++ b/doc/Language/5to6-nutshell.pod6 @@ -42,7 +42,7 @@ an embedded instance of the C interpreter to run Perl 5 code. This is as simple as: -=for code :preamble +=for code :skip-test use Inline::Perl5; use DBI:from; # the :from makes Perl 6 load via Inline::Perl5 my $dbh = DBI.connect(...); @@ -925,6 +925,7 @@ when you don't want another scope: next if $_ % 2 == 1; $str ~= $_; NEXT $str ~= ':'; + } =head1 Functions @@ -1164,7 +1165,7 @@ some you need to specify / load your modules in a particular order, you can create a stub that will be acceptable until the end of compilation: if the stub has not been defined then, compilation will fail. -=for code :preamble +=for code # Perl 6 class Animal { ... } # the ... indicates a stub class Cat is Animal {}