Raku Cookbook

Whole tasks, worked end to end — one page per task, built around programs that were run for it.

DBIish: one program, three databases
Reading and writing a table with DBIish: the same program against SQLite, MySQL and PostgreSQL, what differs between them, and the five things that bite.

A command-line tool, from a script to a binary
A word-frequency counter from a sub MAIN to a single binary: options, the usage message you get for free, standard input, subcommands, and the four traps on the way.

Parsing a configuration file with a grammar
A nested configuration file turned into data by a grammar and an actions class, and three ways to tell whoever wrote a bad file which line is wrong.

Talking to a JSON API
GET, POST and JSON against an API the recipe ships, the four ways a call fails and one retry loop that tells them apart, plus what HTTPS needs here.

Doing several things at once
Four requests in a quarter of the time, primes over eight promises, results as they arrive, a worker pool and a shared array — with the milliseconds each one produced.