Skip to content

Commit

Permalink
fix some compilation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Jun 4, 2018
1 parent 877783c commit d3e1cd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/Language/5to6-nutshell.pod6
Expand Up @@ -42,7 +42,7 @@ an embedded instance of the C<perl> interpreter to run Perl 5 code.
This is as simple as:
=for code :preamble<no strict;>
=for code :skip-test<Inline module not always present when testing>
use Inline::Perl5;
use DBI:from<Perl5>; # the :from<Perl5> makes Perl 6 load via Inline::Perl5
my $dbh = DBI.connect(...);
Expand Down Expand Up @@ -925,6 +925,7 @@ when you don't want another scope:
next if $_ % 2 == 1;
$str ~= $_;
NEXT $str ~= ':';
}
=head1 Functions
Expand Down Expand Up @@ -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<class Animal {}>
=for code
# Perl 6
class Animal { ... } # the ... indicates a stub
class Cat is Animal {}
Expand Down

0 comments on commit d3e1cd0

Please sign in to comment.