The title of this book was originally Think Perl 6, but since Perl 6 has been renamed Raku, we have also changed the title of the book.
Want to learn how to program and think like a computer scientist? This practical guide gets you started on your programming journey with the help of Raku (Perl 6), the younger sister of the popular Perl programming language. Ideal for beginners, this hands-on book includes over 100 exercises with multiple solutions, and more than 1,000 code examples so you can quickly practice what you learn. Experienced programmers - especially those who know Perl 5 - will also benefit.
Divided into two parts, Think Raku (Perl 6) starts with basic concepts that every programmer needs to know, and then focuses on different programming paradigms and some more advanced programming techniques. With two semesters' worth of lessons, this book is the perfect teaching tool for computer science beginners in colleges and universities.
Learn basic concepts including variables, expressions, statements, functions, conditionals, recursion, and loops; Understand commonly used basic data structures and the most useful algorithms; Dive into object-oriented programming, and learn how to construct your own types and methods to extend the language
Use grammars and regular expressions to analyze textual content; Explore how functional programming can help you make your code simpler and more expressive.
This open book is licensed under a Creative Commons License (CC BY-NC). You can download Think Raku (Think Perl 6) ebook for free in PDF format (2.4 MB).
Table of Contents
Starting with the Basics
The Way of the Program
Variables, Expressions and Statements
Loops, Conditionals, and Recursion
Case Study: Word Play
Arrays and Lists
Case Study: Data Structure Selection
Classes and Objects
Regexes and Grammars
Functional Programming in Raku
Some Final Advice
Solutions to the Exercises
Think Raku (Think Perl 6)
O'Reilly Media, Green Tea Press