@@ -31,6 +31,7 @@ of the 'use 6.c' pragma. The next language version (no release date) is to be
31
31
v6.d.
32
32
33
33
= head2 As a Perl 6 beginner what should I install?
34
+ X < |Rakudo Star (FAQ) >
34
35
35
36
Mac users can use the latest Rakudo Star DMG binary installer at
36
37
L < http://rakudo.org/downloads/star >
@@ -48,6 +49,7 @@ Or there is an official rakudo star docker image at
48
49
L < https://hub.docker.com/_/rakudo-star/ >
49
50
50
51
= head2 As an intermediate to advanced user I want to track Rakudo development.
52
+ X < |rakudobrew (FAQ) >
51
53
52
54
Install L < rakudobrew|https://github.com/tadzik/rakudobrew > which resembles
53
55
Perl 5's perlbrew and the equivalent Python and Ruby tools.
@@ -82,12 +84,14 @@ See the '5to6-nutshell' pod under L<https://docs.perl6.org/language/5to6-nutshel
82
84
and related pages.
83
85
84
86
= head2 I'm a Ruby programmer looking for quickstart type docs?
87
+ X < |Ruby (FAQ) >
85
88
86
89
See the 'rb-nutshell' pod under L < https://docs.perl6.org/language/rb-nutshell >
87
90
88
91
= head1 Modules
89
92
90
93
= head2 Is there a CPAN for Perl 6?
94
+ X < |CPAN (FAQ) >
91
95
92
96
There isn't yet a module repository for Perl 6 as sophisticated as CPAN. But
93
97
L < modules.perl6.org|https://modules.perl6.org/ > has a list of known Perl 6
@@ -98,11 +102,13 @@ L<rakudo|http://rakudo.org/>.
98
102
Support for installing Perl 6 modules from the Perl 5 CPAN is on its way.
99
103
100
104
= head2 Can I use Perl 5 modules from Perl 6?
105
+ X < |Perl 5 modules (FAQ) >
101
106
102
107
Yes, with L < Inline::Perl5|https://github.com/niner/Inline-Perl5/ > , which works
103
108
well with most Perl 5 modules. It can even run Perl 5 Catalyst and DBI.
104
109
105
110
= head2 Can I use C and C++ from Perl 6?
111
+ X < |C and C++ (FAQ) >
106
112
107
113
L < Nativecall|https://docs.perl6.org/language/nativecall > makes this particularly easy.
108
114
@@ -112,6 +118,8 @@ This is commonly seen on Debian-like systems. You need to install "libfoo-dev"
112
118
to set a sym link for the missing file.
113
119
114
120
= head2 Where have all the traditional UNIX library functions gone?
121
+ X < |UNIX library functions (FAQ) >
122
+ X < |POSIX (FAQ) >
115
123
116
124
It's very easy to use Nativecall to access them.
117
125
@@ -134,6 +142,7 @@ compilation unit.
134
142
= head1 Language Features
135
143
136
144
= head2 How can I dump Perl 6 data structures (like Perl 5 Data::Dumper and similar)?
145
+ X < |Data::Dumper (FAQ) >
137
146
138
147
Examples:
139
148
@@ -248,6 +257,7 @@ Example of a definite return value:
248
257
In this case the final value is thrown away because the return value is already specified.
249
258
250
259
= head2 How can I extract the values from a Junction?
260
+ X < |Junction (FAQ) >
251
261
252
262
If you want to extract the values (eigenstates) from a
253
263
L < Junction|/type/Junction > , you are probably doing something wrong, and
@@ -311,6 +321,7 @@ or by calling the C<.item> method on an expression.
311
321
312
322
313
323
= head2 Why sigils? Couldn't you do without them?
324
+ X < |sigils (FAQ) >
314
325
315
326
There are several reasons:
316
327
@@ -338,6 +349,7 @@ hash key. Use a closure to help it to understand you.
338
349
say "{$foo}<html-tag>";
339
350
340
351
= head2 Does Perl 6 have coroutines? What about C < yield > ?
352
+ X < |coroutine (FAQ) >
341
353
342
354
Perl 6 has no C < yield > statement like python does, but it does offer similar
343
355
functionality through lazy lists. There are two popular ways to write
@@ -489,6 +501,7 @@ string|/type/Match>.
489
501
C < OpaquePointer > is deprecated and has been replaced with C < Pointer > .
490
502
491
503
= head1 Perl 6 Implementation
504
+ X < |Perl 6 Implementation (FAQ) >
492
505
493
506
= head2 What Perl 6 Implementations are available?
494
507
@@ -505,6 +518,7 @@ machines; it's designed to be a high-level way to create compilers and
505
518
libraries for virtual machines (such as MoarVM and JVM) using Perl 6 syntax.
506
519
507
520
= head2 What language is NQP written in?
521
+ X < |NQP (FAQ) >
508
522
509
523
NQP is a mixture of (1) NQP code, (2) whatever language the underlying virtual
510
524
machine is using, (3) some third-party C and Java libraries, and (4) some
0 commit comments