This book is about Perl 6, a programming language of the Perl family. It covers many basic and in-depth topics of the language and provides the initial knowledge you need to start working with Perl 6. The book does not require any previous experience with Perl, although some general understanding of programming is assumed.
Electronic edition
LeanPub
Amazon Kindle
Paperback editions
Amazon.com, Amazon.de (and also on other local Amazon sites)
Andrew Shitov. Perl 6 at a Glance
© Andrew Shitov, author, 2017
© Elizabeth Mattijsen, reviewer, 2017
Published online in October 2018
First published in English in January 2017
First published in Russian as a series of articles in the Pragmatic Perl magazine in 2014–2015, www.pragmaticperl.com
Published by DeepText, Amsterdam
www.deeptext.media
ISBN 978-90-821568-3-6
Navigate to the contents below or download the PDF version.
Book Contents
Foreword
Chapter 1. Perl 6 Essentials
Variables
Frequently used special variables
Chapter 2. Operators in Perl 6
Prefixes
Postfixes
Method postfixes
Infix operators
Numeric operators
Numeric operators +, -, *, and /
Numeric operators +&, +|, and +^
Numeric operators ?|, ?&, and ?^
Numeric operators <. >, <=, >=, and <=> to compare numbers
String operators
String concatenation operator ~
String comparison operators eq and ne
String comparison operators lt, gt, le, and ge
String comparison operator leg
Universal comparison operators
Universal comparison operator cmp
Universal comparison operators before and after
Universal comparison operator eqv
Universal comparison operator ===
Universal comparison operator =:=
List operators
Junction operators
Junction operators |, &, and ^
Shortcut operators
Other infix operators
Meta-operators
Chapter 3. Code organisation
Slurpy parameters and flattening
Variables and signatures
The need keyword to use a module
The require keyword to use a module
Chapter 4. Classes
Chapter 5. New Concepts
An example of using promises: Sleep sort
Chapter 6. Regexes and Grammars
AST (abstract syntax tree) and attributes
Appendix
Working with files and directories
Conclusion
The book was published in the beginning of 2017 in paper and later as e-book, and was published online at andrewshitov.com in the end of 2018.
The content on this page is free of charge and may be used for any educational purposes.
Electronic edition
LeanPub
Amazon Kindle
Paperback editions
Amazon.com, Amazon.de (and also on other local Amazon sites)