If you’re ready to get started with Perl 6, this is the book you want, whether you’re a programmer, system administrator, or web hacker. Perl 6 is a new language—a modern reinvention of Perl suitable for almost any task, from short fixes to complete web applications. This hands-on tutorial gets you started.
Author brian d foy (Mastering Perl) provides a sophisticated introduction to this new programming language. Each chapter in this guide contains exercises to help you practice what you learn as you learn it. Other books may teach you to program in Perl 6, but this book will turn you into a Perl 6 programmer.
Learn how to work with:
• Numbers, strings, blocks, and positionals • Files and directories and input/output • Associatives, subroutines, classes, and roles • Junctions and sets • Regular expressions and built-in grammars • Concurrency features: Promises, supplies, and channels • Controlling external programs and other advanced features
I ended this book with mixed feelings. As a long-time Perl programmer I wanted to better know Perl 6 in order to understand how different it is from the original Perl and how it improved. I guess on these two considerations the book was a success.
However, I don't know what to think of the language itself. The book got me excited about the topics on numbers, function signatures, object orientation, regexes, and grammars, for instance. On the other hand, it got me scratching my head about Supplies, Channels, and Promises. I know about all the classic concurrency mechanisms (mutexes, semaphores, monitors, queues, CSP, etc.) but I couldn't really grok the Perl 6 mechanisms from the book description. Perhaps using them to implement some simple classic concurrency problems (e.g. the dinning phylosophers) or comparing them to the more usual mechanisms could help.
The real problem though is that in several parts of the book I got nervous with what seems to me at first reading a level of complexity uncalled for. It's too much syntax sugar to my taste, perhaps.
Anyway, I think I can be wrong and could get used to it. I didn't even tried to do the exercises proposed in the book.