Perl 6 by Example
Perl 6 by Example
About the Book
This book will be published by Apress as Perl 6 Fundamentals A Primer with Examples, Projects, and Case Studies. All readers who have purchased it so far will get a free ebook version of th finished book.
Table of Contents
- 1. How To Get a Copy of the Apress Version of This Book
- Foreword
-
2. What is Perl 6?
- 2.1 Perl 5, the Older Sister
- 2.2 Library Availability
- 2.3 Why Should I Use Perl 6?
- 2.4 Summary
-
3. Running Rakudo Perl 6
- 3.1 Installers
- 3.2 Docker
- 3.3 Building from Source
- 3.4 Testing your Rakudo Star Installation
- 3.5 Documentation
- 3.6 Summary
-
4. Formatting a Sudoku Puzzle
- 4.1 Making the Sudoku Playable
- 4.2 Shortcuts, Constants, and more Shortcuts
- 4.3 IO and other Tragedies
- 4.4 Get Creative!
- 4.5 Summary
-
5. Datetime Conversion for the Command Line
- 5.1 Libraries to the Rescue
- 5.2 DateTime Formatting
- 5.3 Looking the Other Way
- 5.4 Dealing with Time
- 5.5 Tighten Your Seat Belt
- 5.6 MAIN Magic
- 5.7 Automated Tests
- 5.8 Summary
-
6. Testing
say()
- 6.1 Summary
-
7. Silent Cron, a Cron Wrapper
- 7.1 Running Commands Asynchronously
- 7.2 Implementing Timeouts
- 7.3 More on Promises
- 7.4 Possible Extensions
-
7.5 Refactoring and Automated Tests
- Refactoring
- Mocking and Testing
- Improving Reliability and Timing
- Installing a Module
- 7.6 Summary
-
8. Stateful Silent Cron
- 8.1 Persistent Storage
- 8.2 Developing the Storage Backend
- 8.3 Using the Storage Backend
- 8.4 Room for Expansion
- 8.5 Summary
-
9. Review of the Perl 6 Basics
- 9.1 Variables and Scoping
- 9.2 Subroutines
- 9.3 Classes and Objects
- 9.4 Concurrency
- 9.5 Outlook
-
10. Parsing INI files using Regexes and Grammars
-
10.1 Regex Basics
- Character Classes
- Quantifiers
- Alternatives
- 10.2 Parsing the INI Primitives
- 10.3 Putting Things Together
- 10.4 Backtracking
- 10.5 Grammars
- 10.6 Extracting Data from the Match
-
10.7 Generating Good Error Messages
- Failure is Normal
- Detecting Harmful Failure
- Providing Context
- Shortcuts for Parsing Matching Pairs
- 10.8 Write Your Own Grammars
- 10.9 Summary
-
10.1 Regex Basics
-
11. A File and Directory Usage Graph
- 11.1 Reading File Sizes
- 11.2 Generating a Tree Map
- 11.3 Flame Graphs
- 11.4 Functional Refactorings
- 11.5 More Language Support for Functional Programming
- 11.6 More Improvements
- 11.7 Explore!
- 11.8 Summary
-
12. A Unicode Search Tool
- 12.1 Code Points, Grapheme Clusters and Bytes
- 12.2 Numbers
- 12.3 Other Unicode Properties
- 12.4 Collation
- 12.5 Summary
-
13. Plotting Using Inline::Python and Matplotlib
- 13.1 Extracting the Stats
- 13.2 Plotting with Python
- 13.3 Bridging the Gap
- 13.4 Using the Bridge to Plot
- 13.5 Stacked Plots
-
13.6 Idiomatic Use of Inline::Python
- Types of Python APIs
- Mapping the Function API
- An Object-Oriented Interface
- 13.7 Summary
-
14. What’s Next?
- 14.1 Scaling Your Codebase
-
14.2 Packaging Your Application
- Packaging as a Traditional Perl 6 Module
- Deploying with Docker
- Windows Installers
- 14.3 Closing Thoughts
- Acknowledgements
- Notes
Other books by this author
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them