Perl 6

Camelia, the Perl 6 mascot[1]

Paradigm| Multi-paradigm
Family| Perl
Designed by| Larry Wall
Developer| Perl 6 community
First appeared| December 25, 2015; 10 years ago (2015-12-25)
Stable release|

Rakudo 2018.06 / June 22, 2018; 8 years ago (2018-06-22)

Typing discipline| Dynamic, gradual
OS| Cross-platform
License| GNU General Public License or Artistic License 2
Filename extensions| .p6, .pl6, .pm6, .pm
Website| perl6.org
Major implementations
Rakudo
Influenced by
Haskell,[2] JavaScript, Perl 5, Ruby, Smalltalk
Influenced
Perl 5,[3] Haskell,[3] AntLang

Perl 6 is a member of the Perl family of programming languages.[4]

While historically several interpreter and compiler implementations were being written, today only the Rakudo Perl 6 implementation is in active development.

It is introducing elements of many modern and historical languages. Compatibility with Perl 5 is not a goal, though a compatibility mode is part of the specification. The design process for Perl 6 began in 2000. In February 2015 a post on The Perl Foundation blog stated that "The Perl6 team will attempt to get a development release of version 1.0 available for Larry's birthday in September and a Version 1.0 release by Christmas",[5] and on 25 December 2015, the first stable version of the specification was announced.[6]

Development on Pugs, the first high-traction implementation, began in 2005, and there have been multiple Perl 6 implementation projects. Rakudo Perl 6 is based on NQP (Not Quite Perl) and can use MoarVM or the Java Virtual Machine as a runtime environment, and releases a new version every month (including precompiled GNU/Linux packages[7]); in July 2010, the project released the first Rakudo Star distribution,[8] a collection of a Perl 6 implementation and related materials. Larry Wall maintains a reference grammar known as STD.pm6,[9] written in Perl 6 and bootstrapped with Perl 5.

## Contents

* 1 History
* 1.1 Goals
* 1.2 Mascot
* 2 Implementations
* 2.1 Historical implementations
* 3 Module system
* 4 Major changes from Perl 5
* 4.1 A specification
* 4.2 A type system
* 4.3 Formal subroutine parameter lists
* 4.3.1 Parameter passing modes
* 4.3.2 Blocks and closures
* 4.4 Sigil invariance
* 4.5 Object-oriented programming
* 4.5.1 Roles
* 4.6 Regular expressions
* 4.7 Syntactic simplification
* 4.8 Chained comparisons
* 4.9 Lazy evaluation
* 4.10 Gather
* 4.11 Junctions
* 4.12 Macros
* 4.13 Identifiers
* 5 Examples
* 5.1 Hello world
* 5.2 Quicksort
* 5.3 Tower of Hanoi
* 6 Books
* 6.1 Books published before Perl 6 version 1.0 (known as version 6.c)
* 6.2 Books published after Perl 6 version 1.0 (known as version 6.c)
* 6.3 Books to be published
* 7 References
* 8 External links

## History

> {{{1}}}

The Perl 6 design process was first announced on 19 July 2000, on the fourth day of that year's Perl Conference,[10] by Larry Wall in his State of the Onion 2000 talk.[11] At that time, the primary goals were to remove "historical warts" from the language; "easy things should stay easy, hard things should get easier, and impossible things should get hard"; a general cleanup of the internal design and APIs. The process began with a series of requests for comments or "RFCs". This process was open to all contributors, and left no aspect of the language closed to change.[12]

Once the RFC process was complete, Wall reviewed and classified each request (361 were received). He then began the process of writing several "Apocalypses", a term which means "revealing".[13] While the original goal was to write one Apocalypse for each chapter of Programming Perl, it became obvious that, as each Apocalypse was written, previous Apocalypses were being invalidated by later changes. For this reason, a set of Synopses were published, each one relating the contents of an Apocalypse, but with any subsequent changes reflected in updates. Today, Perl 6 specification continues almost entirely within the Synopses.[14]

There are also a series of Exegeses written by Damian Conway that explain the content of each Apocalypse in terms of practical usage. Each Exegesis consists of code examples along with discussion of the usage and implications of the examples.[15]

There are three primary methods of communication used in the development of Perl 6 today. The first is the #perl6 connect IRC channel on freenode. The second is a set of mailing lists on The Perl Foundation's servers at perl.org.[16] The third is the Git source code repository hosted at https://github.com/perl6.

### Goals

The break in compatibility was mandated from the start of the project, and immediately allowed some of the changes that Larry Wall had suggested in his initial speech. "Historical warts" such as the confusion surrounding sigil usage for containers; the ambiguity between the `select` functions; the syntactic impact of bareword filehandles; and many other problems that Perl programmers had discussed fixing for years were some of the first issues addressed.

Over the years, Perl 6 has undergone several alterations in its direction. The introduction of concepts from Python and Ruby were early influences,[citation needed] but as the Pugs interpreter was written in the Haskell programming language, many functional programming influences were absorbed by the Perl 6 design team.[citation needed]

### Mascot

Larry Wall and Camelia

The language's mascot is "Camelia, the Perl 6 bug".[1] Her name is a nod to the camel mascot associated with Perl, and her form, in the pun-loving tradition of the Perl community, is a play on "software bug". Spiral designs embedded in her butterfly-like wings resemble the characters "P6", the favored nickname for Perl 6, and off-center eye placement is an intentional pun on "Wall-eyed"[17]

One of the goals behind the lively and colorful design of the logo was to discourage misogyny in the community and for it to be an opportunity for those of "masculine persuasion" to show their sensitive side.[18]

## Implementations

As of 2017[update], only the Rakudo Perl 6 implementation is under active development. No implementation will be designated as the official Perl 6 implementation; rather, "Perl 6 is anything that passes the official test suite."[19]

Rakudo Perl 6[20][21] targets a number of virtual machines, such as MoarVM, the Java Virtual Machine, and JavaScript. MoarVM is a virtual machine built especially for Rakudo Perl 6[22] and the NQP Compiler Toolchain.[23] There is a layer between Perl 6 and the virtual machines called Not Quite Perl 6, or NQP, which implements Perl 6 rules for parsing Perl 6, as well as an Abstract syntax tree and backend-specific code generation. Large portions of Rakudo are written in Perl 6 itself, or in its subset NQP. Rakudo is not a completely self-hosting implementation, nor are there concrete plans at this point to make Rakudo a bootstrapping compiler.

### Historical implementations

Pugs was an initial implementation of Perl 6 written in Haskell. Pugs used to be the most advanced implementation of Perl 6, but since mid 2007 it is mostly dormant (with updates made only to track the current version of GHC). As of November 2014 Pugs was not being actively maintained.[24]

In 2007, v6-MiniPerl6 ("mp6") and its reimplementation, v6-KindaPerl6 ("kp6") were written as a means to bootstrap the Perl-6.0.0 STD, using Perl 5. The STD is a full grammar for Perl 6 and is written in Perl 6. In theory, anything capable of parsing the STD and generating executable code is a suitable bootstrapping system for Perl 6. kp6 is currently compiled by mp6 and can work with multiple backends.[9][25] mp6 and kp6 are not full Perl 6 implementations and are designed only to implement the minimum featureset required to bootstrap a full Perl 6 compiler.

Yapsi is a Perl 6 compiler and runtime written in Perl 6 itself. As a result, it requires an existing Perl 6 interpreter, such as one of the Rakudo Star releases, in order to run.[26]

Niecza, another major Perl 6 implementation effort, focused on optimization and efficient implementation research. It targets the Common Language Infrastructure.[27]

## Module system

The Perl 6 specification requests that modules be identified by name, version, and authority.[28] It is possible to load only a specific version of a module, or even two modules of the same name that differ in version or authority. As a convenience, aliasing to a short name is provided.

CPAN, the Perl 5 module distribution system, does not yet handle Perl 6 modules. Instead a prototype module system is in use.[29]

## Major changes from Perl 5

Perl 5 and Perl 6 differ fundamentally, though in general the intent has been to "keep Perl 6 Perl", so that Perl 6 is clearly "a perl programming language". Most of the changes are intended to normalize the language, to make it easier for novice and expert programmers alike to understand, and to make "easy things easier and hard things more possible".

### A specification

A major, but non-technical difference between Perl 5 and Perl 6 is that Perl 6 began as a specification.[19] This means that Perl 6 can be re-implemented if needed, and it also means that programmers don't have to read the source code for the ultimate authority on any given feature. Perl 5's documentation is regarded as excellent,[30] even outside of the Perl community where even mixed reviews typically note its maturity and breadth. However, the documentation is not considered authoritative and only describes the behavior of the actual Perl 5 interpreter informally. Any discrepancies found between the documentation and the implementation may lead to either being changed to reflect the other, a dynamic which drives the continuing development and refinement of the Perl 5 releases.

### A type system

In Perl 6, the dynamic type system of Perl 5 has been augmented by the addition of static types.[31] For example:

my Int $i = 0;
my Rat $r = 3.142;
my Str $s = "Hello, world";

However, static typing remains optional, so programmers can do most things without any explicit typing at all:

my $i = "25" + 10; # $i is 35

Perl 6 offers a gradual typing system whereby the programmer may choose to use static typing, use dynamic typing, or mix the two.

### Formal subroutine parameter lists

Perl 5 defines subroutines without formal parameter lists at all (though simple parameter counting and some very loose type checking can be done using Perl 5's "prototypes"). Subroutine arguments passed in are aliased into the elements of the array `@_`. If the elements of `@_` are modified, the changes are reflected in the original data.

Perl 6 introduces true formal parameters to the language.[32] In Perl 6, a subroutine declaration looks like this:

sub do_something(Str $thing, Int $other) {
. . .

As in Perl 5, the formal parameters (i.e., the variables in the parameter list) are aliases to the actual parameters (the values passed in), but by default, the aliases are constant so they cannot be modified. They may be declared explicitly as read-write aliases for the original value or as copies using the `is rw` or `is copy` directives should the programmer require them to be modified locally.

#### Parameter passing modes

Perl 6 provides three basic modes of parameter passing:

* Positional
* Named
* Slurpy

Positional parameters are the typical ordered list of parameters that most programming languages use. All parameters may also be passed by using their name in an unordered way. A named-only parameter can only be passed by specifying its name (that is, it never captures a positional argument), and are indicated with a leading `:` character. Slurpy parameters (indicated by an `*` before the parameter name) are Perl 6's tool for creating variadic functions. A slurpy hash will capture remaining passed-by-name parameters, whereas a slurpy array will capture remaining passed-by-position parameters.

Here is an example of the use of all three parameter-passing modes:

sub somefunction($a, $b, :$c, :$d, *@e) {
. . .

somefunction(1, 2, :d(3), 4, 5, 6); # $a=1, $b=2, $d=3, @e=(4,5,6)
somefunction(:b<2>, :a<1>);         # $a="1", $b="2"

Positional parameters, such as those used above are always required, unless followed by `?` to indicate that they are optional. Named parameters are optional by default, but may be marked as required by adding `!` after the variable name. Slurpy parameters are always optional.

#### Blocks and closures

Parameters can also be passed to arbitrary blocks, which act as closures. This is how, for example, `for` and `while` loop iterators are named. In the following example, a list is traversed, 3 elements at a time, and passed to the loop's block as the variables, `$a, $b, $c`.[33]

for @list -> $a, $b, $c {
. . .

This is generally referred to as a "pointy sub" or "pointy block", and the arrow behaves almost exactly like the `sub` keyword, introducing an anonymous closure (or anonymous subroutine in Perl 5 terminology).[32]

### Sigil invariance

In Perl 5, sigils - the punctuation characters that precede a variable name - change depending on how the variable is used:

# Perl 5 code
my @array = ('a', 'b', 'c');
my $element = $array[1];    # $element equals 'b',
my @extract = @array[1, 2]; # @extract equals ('b', 'c')
my $element = @array[1];    # 'b' comes with a warning (5.10 option)

In Perl 6, sigils are invariant, which means that they do not change based on whether it is the array or the array element that is needed:[31]

# Perl 6 code
my @array = 'a', 'b', 'c';
my $element = @array[1];    # $element equals 'b'
my @extract = @array[1];    # @extract equals ('b')
my @extract = @array[1, 2]; # @extract equals ('b', 'c')

The variance in Perl 5 is inspired by number agreement in English and many other natural languages:

"This apple."                    # $a        CORRECT
"These apples."                  # @a        CORRECT
"This third apple."              # $a[3]     CORRECT
"These third apple."             # @a[3]     WRONG

However, this conceptual mapping breaks down when references come into play, since they may refer to data structures even though they are scalars. Thus, dealing with nested data structures may require an expression of both singular and plural form in a single term:

# Perl 5 code: retrieve a list from the leaf of a hash containing hashes that contain arrays
my @trans_verbs = @{ $dictionary{ 'verb' }{ 'transitive' } };

This complexity has no equivalent either in common use of natural language or in other programming languages[dubious - discuss], and it causes high cognitive load when writing code to manipulate complex data structures. Compare this with Perl 6:

# Perl 6 code: retrieve a list from the leaf of a hash containing hashes that contain arrays
my @trans_verbs = %dictionary<verb><transitive><>;

### Object-oriented programming

Perl 5 supports object-oriented programming via a mechanism known as blessing. Any reference can be blessed into being an object of a particular class. A blessed object can have methods invoked on it using the "arrow syntax" which will cause Perl to locate or "dispatch" an appropriate subroutine by name, and call it with the blessed variable as its first argument.

While extremely powerful, it makes the most common case of object orientation, a struct-like object with some associated code, unnecessarily difficult. In addition, because Perl can make no assumptions about the object model in use, method invocation cannot be optimized very well.

In the spirit of making the "easy things easy and hard things possible", Perl 6 retains the blessing model and supplies a more robust object model for the common cases.[34] For example, a class to encapsulate a Cartesian point could be defined and used this way:

class Point is rw {
has $.x;
has $.y;

my $point = Point.new( x => 1.2, y => -3.7 );

# Now change x (note method "x" used as lvalue):
$point.x = 2;
say "Point is at X location: ", $point.x;

The dot replaces the arrow in a nod to the many other languages (e.g. Java, Python, etc.) that have coalesced around dot as the syntax for method invocation.

In the terminology of Perl 6, `$.x` is called an "attribute". Some languages call these fields or members. The method used to access an attribute is called an "accessor". Auto-accessors are methods that are created automatically, as the method `x` is in the example above. These accessor functions return the value of the attribute. When a class or individual attribute is declared with the `is rw` modifier (short for "read/write"), the auto-accessor can be passed a new value to set the attribute to, or it can be directly assigned to as an lvalue (as in the example). Auto-accessors can be replaced by user-defined methods, should the programmer desire a richer interface to an attribute. Attributes can only be accessed directly from within a class definition. All other access must go through the accessor methods.

The Perl 6 object system has inspired the Moose framework that introduces many of Perl 6's OOP features to Perl 5.

#### Roles

Roles in Perl 6 take on the function of interfaces in Java, mixins in Ruby, and traits[35] in the Smalltalk variant Squeak. These are much like classes, but they provide a safer composition mechanism.[36] These are used to perform composition when used with classes rather than adding to their inheritance chain. Roles define nominal types; they provide semantic names for collections of behavior and state. The fundamental difference between a role and a class is that classes are instantiable; roles are not.[37]

Essentially, a role is a bundle of (possibly abstract) methods and attributes that can be added to a class without using inheritance. A role can even be added to an individual object; in this case, Perl 6 will create an anonymous subclass, add the role to the subclass, and change the object's class to the anonymous subclass.

For example, a Dog is a Mammal. Dogs inherit certain characteristics from Mammals, such as mammary glands and (through Mammal's parent, Vertebrate) a backbone. Dogs may have one of several distinct types of behavior; for example, a Dog may be a Pet, a Stray, or a Guide for the blind. However, these are simply sets of additional behaviors that can be added to a Dog; a Cat can equally be a Pet or Stray, for example. Hence, Dog and Mammal are classes, while Pet, Stray, and Guide are roles.

class Mammal is Vertebrate {
. . .

class Dog is Mammal {
. . .

role Pet {
. . .

role Stray {
. . .

role Guide {
. . .

Roles are added to a class or object with the `does` keyword, as opposed to inheritance's `is`. The keywords reflect the differing meanings of the two features: role composition gives a class the behavior of the role, but doesn't indicate that it is truly the same thing as the role.

class GuideDog is Dog does Guide {
. . .
}   # Subclass composes role

my $dog = new Dog;
$dog does Guide;       # Individual object composes role

Although roles are distinct from classes, both are types, so a role can appear in a variable declaration where one would normally put a class. For example, a Blind role for a Human could include an attribute of type Guide; this attribute could contain a Guide Dog, a Guide Horse, a Guide Human, or even a Guide Machine.

class Human {
has Dog $dog;      # Can contain any kind of Dog, whether it does the
...                # Guide role or not

role Blind {
has Guide $guide;  # Can contain any object that does the Guide role,
...                # whether it is a Dog or something else

### Regular expressions

Main article: Perl 6 rules

Perl's regular expression and string-processing support has always been one of its defining features.[38] Since Perl's pattern-matching constructs have exceeded the capabilities of regular language expressions for some time,[39] Perl 6 documentation will exclusively refer to them as regexen, distancing the term from the formal definition.

Perl 6 provides a superset of Perl 5 features with respect to regexes, folding them into a larger framework called "rules" which provide the capabilities of context-sensitive parsing formalisms (such as the syntactic predicates of parsing expression grammars and ANTLR), as well as acting as a closure with respect to their lexical scope.[40] Rules are introduced with the `rule` keyword which has a usage quite similar to subroutine definition. Anonymous rules can also be introduced with the `regex` (or `rx`) keyword, or they can simply be used inline as regexps were in Perl 5 via the `m` (matching) or `s` (substitute) operators.

In Apocalypse 5, Larry Wall enumerated 20 problems with "current regex culture". Among these were that Perl's regexes were "too compact and 'cute'", had "too much reliance on too few metacharacters", "little support for named captures", "little support for grammars", and "poor integration with 'real' language".[41]

### Syntactic simplification

Some Perl 5 constructs have been changed in Perl 6, optimized for different syntactic cues for the most common cases. For example, the parentheses (round brackets) required in control flow constructs in Perl 5 are now optional:[33]

if is_true() {
for @array {
...

Also, the `,` (comma) operator is now a list constructor, so enclosing parentheses are no longer required around lists. The code

@array = 1, 2, 3, 4;

now makes `@array` an array with exactly the elements '1', '2', '3', and '4'.

### Chained comparisons

Perl 6 allows comparisons to "chain". That is, a sequence of comparisons such as the following are allowed:

if 20 <= $temperature <= 25 {
say "Room temperature is between 20 and 25!"

This is treated as if each left-to-right comparison were performed on its own, and the result is logically combined via the `and` operation.

### Lazy evaluation

Perl 6 uses the technique of lazy evaluation of lists that has been a feature of some functional programming languages such as Haskell:[42]

@integers = 0..Inf; # integers from 0 to infinity

The code above will not crash by attempting to assign a list of infinite size to the array `@integers`, nor will it hang indefinitely in attempting to expand the list if a limited number of slots are searched.

This simplifies many common tasks in Perl 6 including input/output operations, list transformations, and parameter passing.

### Gather

Related to lazy evaluation is the construction of lazy lists using `gather` and `take`, behaving somewhat like generators in languages like Icon or Python.

my $squares = lazy gather for 0..Inf {
take $_ * $_;

`$squares` will be an infinite list of square numbers, but lazy evaluation of the `gather` ensures that elements are only computed when they are accessed.

### Junctions

Perl 6 introduces the concept of junctions: values that are composites of other values.[42] In their simplest form, junctions are created by combining a set of values with junctive operators:

# Example for | ("any") Junction:
my $color = 'white';
unless $color eq 'white' | 'black' | 'gray' | 'grey' {
die "Color printing not supported\n";

# Example for & ("all") Junction:
my $password = 'secret!123';
if $password ~~ /<:Letter>/ & /<:Digit>/ & /<:Symbol>/ {
say "Your password is reasonably secure";

`|` indicates a value which is equal to either its left or right-hand arguments. `&` indicates a value which is equal to both its left and right-hand arguments. These values can be used in any code that would use a normal value. Operations performed on a junction act on all members of the junction equally, and combine according to the junctive operator. So, `("apple"|"banana") ~ "s"` would yield `"apples"|"bananas"`. In comparisons, junctions return a single true or false result for the comparison. "`any`" junctions return true if the comparison is true for any one of the elements of the junction. "`all`" junctions return true if the comparison is true for all of the elements of the junction.

Junctions can also be used to more richly augment the type system by introducing a style of generic programming that is constrained to junctions of types:

subset Color of Any where Color | CMYK_Color;
sub get_tint(Color $color, Num $opacity) {
. . .

### Macros

In low-level languages, the concept of macros has become synonymous with textual substitution of source-code due to the widespread use of the C preprocessor. However, high-level languages such as Lisp pre-dated C in their use of macros that were far more powerful.[43] It is this Lisp-like macro concept that Perl 6 will take advantage of.[32] The power of this sort of macro stems from the fact that it operates on the program as a high-level data structure, rather than as simple text, and has the full capabilities of the programming language at its disposal.

A Perl 6 macro definition will look like a subroutine or method definition, and it can operate on unparsed strings, an AST representing pre-parsed code, or a combination of the two. A macro definition would look like this:[44]

macro hello($what) {
quasi { say "Hello { {{{$what}}} }" };

In this particular example, the macro is no more complex than a C-style textual substitution, but because parsing of the macro parameter occurs before the macro operates on the calling code, diagnostic messages would be far more informative. However, because the body of a macro is executed at compile time each time it is used, many techniques of optimization can be employed. It is even possible to entirely eliminate complex computations from resulting programs by performing the work at compile-time.

### Identifiers

In Perl 5, identifier names can use the ASCII alphanumerics and underscores also available in other languages. In Perl 6, the alphanumerics can include most Unicode characters. In addition, hyphens and apostrophes can be used (with certain restrictions, such as not being followed by a digit). Using hyphens instead of underscores to separate words in a name leads to a style of coding called “kebab-casing” which is highly regarded by two-finger typists.

## Examples

### Hello world

The hello world program is a common program used to introduce a language. In Perl 6, hello world is:

say 'Hello, world';

-- though there is more than one way to do it.

### Quicksort

Quicksort is a well-known sorting algorithm. A working implementation using the functional programming paradigm can be succinctly written in Perl 6:

# Empty list sorts to the empty list
multi quicksort([]) { () }

# Otherwise, extract first item as pivot...
multi quicksort([$pivot, *@rest]) {
# Partition.
my @before = @rest.grep(* before $pivot);
my @after  = @rest.grep(* !before $pivot);

# Sort the partitions.
flat (quicksort(@before), $pivot, quicksort(@after))

### Tower of Hanoi

Tower of Hanoi is often used to introduce recursive programming in computer science. This implementation uses Perl 6's multi-dispatch mechanism and parametric constraints:

multi sub hanoi(0, $, $, $) { }                         # No disk, so do not do anything
multi sub hanoi($n, $a = 'A', $b = 'B', $c = 'C') {     # Start with $n disks and three pegs A, B, C
hanoi $n - 1, $a, $c, $b;                           # firstly move top $n - 1 disks from A to B
say "Move disk $n from peg $a to peg $c";           # then move last disk from A to C
hanoi $n - 1, $b, $a, $c;                           # lastly move $n - 1 disks from B to C

## Books

In history of Perl 6, there were two waves, when authors had interest to write books. The first wave followed the initial announcement of Perl 6 in 2000. Those books reflect the state of the design of the language of that time, and contain mostly outdated material as of today. The second wave, that followed the announcement of the Version 1.0 in 2015, includes several books that have already been published and some others that are in the process of writing.

### Books published before Perl 6 version 1.0 (known as version 6.c)

* A. Randal, D. Sugalski, L. Totsch. Perl 6 and Parrot Essentials, 1st edition, 2003, ISBN 978-0596004996
* A. Randal, D. Sugalski, L. Totsch. Perl 6 and Parrot Essentials, Second Edition 2004\. ISBN 978-0596007379
* S. Walters. Perl 6 Now: The Core Ideas Illustrated with Perl 5. 2004\. ISBN 978-1590593950

Also, a book dedicated to one of the first Perl 6's virtual machine, Parrot, was published in 2009.

* A. Randal, A. Whitworth. Parrot Developer's Guide: Pir. 2009\. ISBN 978-0977920129

### Books published after Perl 6 version 1.0 (known as version 6.c)

* Andrew Shitov. Perl 6 at a Glance. 2017\. ISBN 978-90-821568-3-6
* Laurent Rosenfeld, Allen B. Downey. Think Perl 6 2017\. ISBN 978-1-4919-8055-2
* Moritz Lenz. Perl 6 Fundamentals 2017\. ISBN 978-1-4842-2898-2
* J. J. Merelo. Learning to program with Perl 6: First Steps: Getting into programming without leaving the command line 2017\. ISBN 978-1521795781
* Andrew Shitov. Perl 6 Deep Dive. 2017. ISBN 978-1-78728-204-9
* Andrew Shitov. Using Perl 6. 2017. ISBN 978-90-821568-1-2
* Moritz Lenz. Searching and Parsing with Perl 6 Regexes 2017\. ISBN 978-1-4842-3228-6

### Books to be published

There are a few reports[45] from different authors about the new books that they are going to be published soon, all based on the current version 1.0 (known as version 6.c) of Perl 6.

* brian d foy. Learning Perl 6 (electronic version available)
* Andrew Shitov. Migrating to Perl 6. An Easy Transition from Perl 5. ISBN 978-90-821568-5-0. Expected in 2018
* Gabor Szabo. Web Application Development in Perl 6. Expected in December 2017.

## References

1. ↑ 1.0 1.1 Jackson, Joab (23 July 2010). "Perl creator hints at imminent release of long-awaited Perl 6". IDG News Service. http://www.infoworld.com/d/open-source/perl-creator-hints-imminent-release-long-awaited-perl-6-445. Retrieved 2015-02-08.
2. ↑ "Glossary of Terms and Jargon". Perl Foundation Perl 6 Wiki. The Perl Foundation. 2011-02-28. http://www.perlfoundation.org/perl6/index.cgi?glossary_of_terms_and_jargon. Retrieved 2015-02-08.
3. ↑ 3.0 3.1 唐鳳, a.k.a. Audrey Tang (2010-04-21). "How to Implement Perl 6 in '10". http://pugs.blogs.com/pugs/2010/04/how-to-implement-perl-6-in-10.html.
4. ↑ "About Perl". perl.org. http://www.perl.org/about.html. Retrieved 2013-04-20. ""Perl" is a family of languages, "Perl 6" is part of the family, but it is a separate language which has its own development team. Its existence has no significant impact on the continuing development of "Perl 5"."
5. ↑ "Perl Foundation". Archived from the original on 2005-11-30. https://web.archive.org/web/20051130095932/http://www.perlfoundation.org/#yapcna2. "The Perl6 team will attempt to get a development release of version 1.0 available for Larry's birthday in September and a Version 1.0 release by Christmas. So it looks like Christmas 2015 was the Christmas that we were expecting."
6. ↑ "Christmas is here.". https://perl6advent.wordpress.com/2015/12/25/christmas-is-here/. Retrieved 2015-12-27.
7. ↑ "Native Linux Rakudo packages". https://github.com/nxadm/rakudo-pkg#about-the-packages-and-links-to-downloads. Retrieved 2016-10-01.
8. ↑ Michaud, Patrick (29 July 2010). "Announce: Rakudo Star — a useful, usable, "early adopter" distribution of Perl 6". http://rakudo.org/2018/01/29/announce-rakudo-star-release-2018-01/. Retrieved 2015-02-08.
9. ↑ 9.0 9.1 Wall, Larry (2007). "Perl 6 STD". https://github.com/perl6/std/blob/master/STD.pm6.
10. ↑ Kline, Joe (2000-08-21). "Report from the Perl Conference". http://www.perl.com/pub/a/2000/08/tpc4.html.
11. ↑ Wall, Larry (2000). "State of the Onion 2000". O'Reilly Network. http://www.perl.com/pub/a/2000/10/23/soto2000.html.
12. ↑ The Perl Foundation (2000). "About Perl 6 RFCs". http://dev.perl.org/perl6/rfc/meta/.
13. ↑ Wall, Larry (2001-04-02). "Apocalypse 1: The Ugly, the Bad, and the Good". http://dev.perl.org/perl6/doc/design/apo/A01.html.
14. ↑ Larry Wall and the Perl 6 designers (2015). "Perl 6 Design Documents". http://design.perl6.org/.
15. ↑ The Perl Foundation (2001). "Exegeses". http://dev.perl.org/perl6/doc/exegesis.html.
16. ↑ The Perl Foundation (2002). "Perl Development: Mailing Lists". http://dev.perl.org/perl6/lists/.
17. ↑ "Larry Wall in IRC chat log". 15 January 2016. https://irclog.perlgeek.de/perl6/2016-01-15#i_11894111. Retrieved 2017-11-10.
18. ↑ "Archived "Logo considerations" email from Larry Wall". 24 March 2009. https://github.com/perl6/mu/blob/aaa173d49c8ba681628739e96ed28fdb921211ec/misc/camelia.txt#L78-L80. Retrieved 2017-11-10.
19. ↑ 19.0 19.1 Wall, Larry (2004-08-10). "Synopsis 1: Overview". http://design.perl6.org/S01.html.
20. ↑ "rakudo/rakudo - GitHub". Github.com. https://github.com/rakudo/rakudo/. Retrieved 2013-09-21.
21. ↑ Michaud, Patrick (2008-01-16). "The compiler formerly known as 'perl6'". Archived from the original on 2012-02-18. https://web.archive.org/web/20120218080103/http://use.perl.org/~pmichaud/journal/35400.
22. ↑ Worthington, Jonathan. "MoarVM: A virtual machine for NQP and Rakudo". 6guts. http://6guts.wordpress.com/2013/05/31/moarvm-a-virtual-machine-for-nqp-and-rakudo/. Retrieved 24 July 2013.
23. ↑ "MoarVM". MoarVM team. http://moarvm.com/. Retrieved 2017-07-08.
24. ↑ "Feature comparison of Perl 6 compilers". http://perl6.org/compilers/features.
25. ↑ "mp6/kp6 FAQ". Perl 6 development team. 2006. http://darcs.pugscode.org/v6/v6-KindaPerl6/docs/FAQ.pod.
26. ↑ "Yapsi README". 2011. https://github.com/masak/yapsi/blob/master/README.
27. ↑ O'Rear, Stefan (29 November 2011). "Niecza README.pod". https://github.com/sorear/niecza/blob/master/README.pod. Retrieved 2012-01-12.
28. ↑ Wall, Larry (2004). "Synopsis 11: Modules". http://design.perl6.org/S11.html.
29. ↑ "Perl 6 Modules Directory". Modules.perl6.org. http://modules.perl6.org/. Retrieved 2013-09-21.
30. ↑ Lhotsky, Brad (2004-03-10). "Thinking In Perl". http://www.developer.com/lang/perl/article.php/10940_3323421_2/Thinking-In-Perl.htm.
31. ↑ 31.0 31.1 Wall, Larry (2009-05-20). "Synopsis 2: Bits and Pieces". http://design.perl6.org/S02.html.
32. ↑ 32.0 32.1 32.2 Wall, Larry (2003-03-21). "Synopsis 6: Subroutines". http://design.perl6.org/S06.html.
33. ↑ 33.0 33.1 Wall, Larry (2009-05-20). "Synopsis 4: Blocks and Statements". http://design.perl6.org/S04.html.
34. ↑ Wall, Larry (2006-08-18). "Synopsis 12: Objects". http://design.perl6.org/S12.html.
35. ↑ The Software Composition Group (2003). "Traits". http://www.iam.unibe.ch/~scg/Research/Traits/.
36. ↑ Jonathan Worthington (2009). "Day 18: Roles". https://perl6advent.wordpress.com/2009/12/18/day-18-roles/.
37. ↑ chromatic (2009). "The Why of Perl Roles". http://www.modernperlbooks.com/mt/2009/04/the-why-of-perl-roles.html.
38. ↑ Parlante, Nick (2000). "Essential Perl: String Processing with Regular Expressions". http://cslibrary.stanford.edu/108/EssentialPerl.html#re.
39. ↑ Christiansen, Tom (1996). "PERL5 Regular Expression Description". http://www.perl.com/doc/FMTEYEWTK/regexps.html. "Perl's regexps "aren't" -- that is, they aren't "regular" because backreferences per sed and grep are also supported, which renders the language no longer strictly regular"
40. ↑ Wall, Larry (2009-05-20). "Synopsis 5: Regexes and Rules". http://design.perl6.org/S05.html.
41. ↑ Wall, Larry (2002-06-04). "Apocalypse 5: Pattern Matching". http://dev.perl.org/perl6/doc/design/apo/A05.html.
42. ↑ 42.0 42.1 Wall, Larry (2004-09-13). "Synopsis 9: Data Structures". http://design.perl6.org/S09.html.
43. ↑ Lamkins, David B. (2004-12-08). Successful Lisp: How to Understand and Use Common Lisp. bookfix.com. http://psg.com/~dlamkins/sl/chapter20.html.
44. ↑ "Macros". http://design.perl6.org/S06.html#Macros.
45. ↑ Books about Perl 6

## External links

* Language and library documentation
* List of modules
* Official Perl 6 Specification. The Roast (official Perl 6 specification)
* Perl 6 Design Archive. The Synopses (archived historical design documents)
* The original community RFCs \- For historical interest only.
* Perl5 to Perl 6 \- Moritz Lenz's guide to Perl 6 syntax and features
* Present Continuous, Future Perfect \- Larry Wall's talk about Perl 5 and Perl 6 at Open Source Developer Conference 2006 in Netanya, Israel (archived HTML, with links to slides and audio recording)
* Perl 6 at a Glance \- The first book about modern Perl 6 (covering version 6.c)

* v
* t
* e

Perl

People|

* Larry Wall
* Randal L. Schwartz
* Damian Conway
* Allison Randal
* Audrey Tang
* Sean M. Burke
* chromatic
* Adam Kennedy
* brian d foy
* Jesse Vincent

Things|

* CPAN
* Perl Foundation
* Perl Mongers
* PerlMonks
* archives
* module
* Perl VM
* YAPC

Frameworks|

* Bioperl
* Catalyst
* Dancer
* DBI
* [[DBIx::Class|]]
* LWP
* Mason
* Maypole
* Mojolicious
* Moose
* Plack
* PSGI
* Template Toolkit

Software|

* Amavis
* Argus
* @SSP
* AWStats
* BackupPC
* Bricolage
* Bugzilla
* Dada Mail
* ikiwiki
* Makepp
* Movable Type
* Munin
* OTRS
* SpamAssassin
* TWiki/Foswiki
* W3Perl
* Webmin

Related|

* Parrot
* Raku
* Rakudo
* rules

* Outline
* Category

0.00

(0 votes)

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Perl_6&oldid=299899"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template