Cover of Perl
A Beginner's Guide in the AI Era

Perl

A Beginner's Guide in the AI Era

Get started with Perl through a beginner's introduction for the AI era. Develop familiarity with the language and a thoughtful approach to using AI assistance as you learn to program.

View on Amazon ↗

Opens Amazon in a new tab. Check the listing for formats and availability.

A closer look

About this book.

Perl has a reputation for being "write-only" — powerful, but impossible to read once you've written it. That reputation is outdated, and this book teaches the disciplined, modern way to learn it instead.

Perl: A Beginner's Guide in the AI Era takes you from a blank terminal to four working programs — a log analyzer, a CSV-driven contact manager, a web API client, and a capstone project you build largely on your own. Along the way you'll learn scalars, arrays, and hashes; regular expressions (still one of Perl's greatest strengths); subroutines and scope; references and nested data structures; file handling; and how to read and untangle other people's messy legacy Perl.

What sets this book apart is how directly it treats AI as part of the modern learning process. Every chapter includes an "AI Sidekick" — a specific, well-crafted prompt for verifying your understanding with an AI assistant like Claude or ChatGPT, rather than a vague "ask AI if you're stuck." You'll also learn a real, practical workflow for reviewing AI-generated Perl code, since AI models frequently produce outdated, pre-strict Perl if you don't know what to check for.

Written in a friendly, conversational tone — like a patient senior developer explaining things over coffee — this book assumes no prior Perl experience and builds your confidence chapter by chapter through hands-on practice, mini-challenges, and real projects, not just syntax reference.

By the end, you won't just know Perl syntax. You'll know how to build with it, debug it, read someone else's version of it, and use AI as a genuine collaborator rather than a crutch.

Beyond the book

Reader resources.

Download chapter code (ZIP)

Includes a README with setup notes and a chapter-by-chapter file index.

Official documentation and guides for topics covered in this book.

← Back to the books