Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows with Prime
Try Prime
and start saving today with fast, free delivery
Amazon Prime includes:
Fast, FREE Delivery is available to Prime members. To join, select "Try Amazon Prime and start saving today with Fast, FREE Delivery" below the Add to Cart button.
Amazon Prime members enjoy:- Cardmembers earn 5% Back at Amazon.com with a Prime Credit Card.
- Unlimited Free Two-Day Delivery
- Instant streaming of thousands of movies and TV episodes with Prime Video
- A Kindle book to borrow for free each month - with no due dates
- Listen to over 2 million songs and hundreds of playlists
- Unlimited photo storage with anywhere access
Important: Your credit card will NOT be charged when you start your free trial or if you cancel during the trial period. If you're happy with Amazon Prime, do nothing. At the end of the free trial, your membership will automatically upgrade to a monthly membership.
Buy new:
$42.49$42.49
FREE delivery:
Thursday, Dec 14
Ships from: Amazon.com Sold by: Amazon.com
Buy used: $37.31
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
Learning Perl: Making Easy Things Easy and Hard Things Possible 8th Edition
| Price | New from | Used from |
- Kindle
$40.37 Read with our free app - Paperback
$37.31 - $42.494 Used from $33.33 17 New from $38.39
Purchase options and add-ons
If you're just getting started with Perl, this is the book you want—whether you're a programmer, system administrator, or web hacker. Nicknamed "the Llama" by two generations of users, this best seller closely follows the popular introductory Perl course taught by the authors since 1991. This eighth edition covers recent changes to the language up to version 5.34.
Perl is suitable for almost any task on almost any platform, from short fixes to complete web applications. Learning Perl teaches you the basics and shows you how to write simple, single-file programs—roughly 90% of the Perl programs in use today. And each chapter includes exercises to help you practice what you've just learned. Other books may teach you to program in Perl, but this book will turn you into a Perl programmer.
Topics include:
- Perl data and variable types
- Subroutines
- File operations
- Regular expressions
- String manipulation (including Unicode)
- Lists and sorting
- Process management
- Use of third-party modules
- ISBN-101492094951
- ISBN-13978-1492094951
- Edition8th
- PublisherO'Reilly Media
- Publication date
2021
September 21
- Language
EN
English
- Dimensions
7.0 x 1.0 x 9.0
inches
- Length
395
Pages
Frequently bought together

Similar items that may ship from close to you
From the brand
-
-
Sharing the knowledge of experts
O'Reilly's mission is to change the world by sharing the knowledge of innovators. For over 40 years, we've inspired companies and individuals to do new things (and do them better) by providing the skills and understanding that are necessary for success.
Our customers are hungry to build the innovations that propel the world forward. And we help them do just that.
From the Publisher
About This Book
Welcome to the eighth edition of Learning Perl, updated for Perl 5.34 and its latest features. This book is still mostly good even if you are still using Perl 5.8 (although, it’s been a long time since it was released; have you thought about upgrading?).
If you’re looking for the best way to spend your first 30 to 45 hours with the Perl programming language, you’ve found it. In the pages that follow, you’ll find a carefully paced introduction to the language that is the workhorse of the internet, as well as the language of choice for system administrators, web hackers, and casual programmers around the world. We’ve designed this book based on the in-person classes we teach, so we’ve timed the book for a week’s worth of work.
We hope you’re reading this preface before you buy the book, because there’s a historical hiccup that may cause some confusion. There’s another language, Perl 6, that started off as a replacement for Perl 5 but then went out on its own with the new name “Raku” (although brian’s book on that language is still Learning Perl 6).
Along with that, there’s currently a move to make a new major version of Perl, Perl 7. That’s supposed to be Perl v5.34 with different defaults as a baby step to evolving the language. Since it’s basically Perl 5, it should be able to run Perl 5 programs, although perhaps with a compatibility switch. As we write this, we’re not sure how that will shake out.
As we write this, Perl 5 is probably the version you want. It’s the widely installed and used language that people mean when they say simply “Perl.” It’s going to be the interesting and most used version for a long time. It’s the one you want if you don’t know why this paragraph is here.
We can’t give you all of Perl in just a few hours. The books that promise to do that are probably fibbing a bit. Instead, we’ve carefully selected a useful subset of Perl for you to learn, good for programs from 1 to 128 lines long (an arbitrary number), which end up being about 90% of the programs in use out there. And when you’re ready to go on, you can get Intermediate Perl, which picks up where this book leaves off. We’ve also included a number of pointers for further education.
Each chapter is short enough for you to read in an hour or two. Each chapter ends with a series of exercises to help you practice what you’ve just learned, with the answers in Appendix A for your reference. Thus, this book is ideally suited for a classroom “Introduction to Perl” course. We know this directly because the material for this book was lifted almost word for word from our flagship “Learning Perl” course, delivered to thousands of students around the world. However, we’ve designed the book for self-study as well. brian provides additional exercises and detailed answers in a separate companion book, Learning Perl Exercises.
Perl lives as the “toolbox for Unix,” but you don’t have to be a Unix guru, or even a Unix user, to read this book. Unless otherwise noted, everything we’re saying applies equally well to Windows ActivePerl from ActiveState and Strawberry Perl and pretty much every other modern implementation of Perl.
Although you don’t need to know a single thing about Perl to begin reading this book, we recommend that you already have familiarity with basic programming concepts such as variables, loops, subroutines, and arrays, and the all-important “editing a source code file with your favorite text editor.” We don’t spend any time trying to explain those concepts. Although we’re pleased that we’ve had many reports of people successfully picking up Learning Perl and grasping Perl as their first programming language, of course we can’t promise the same results for everyone.
Is This the Right Book for You?
This is not a reference book. It’s a tutorial on the very basics of Perl, which is just enough for you to create simple programs mostly for your own use. We don’t cover every detail of every topic, and we spread out some of the topics over several chapters so that you pick up concepts as you need them.
Our intended readers are people who know at least a little bit about programming and just need to learn Perl. We assume you have at least some background in using a terminal, editing files, and running programs—just not Perl programs. You already know about variables and subroutines and the like, but you just need to see how Perl does it.
This doesn’t mean that the absolute beginner, having never touched a terminal program or written a single line of code, will be completely lost. You might not catch everything we say the first time you go through the book, but many beginners have used the book with only minor frustrations. The trick is to not worry about everything you might be missing and to focus on just the core concepts we present. You might take a little longer than an experienced programmer, but you have to start somewhere.
Editorial Reviews
About the Author
He is also a frequent contributor to the Perl newsgroups, and has moderated comp.lang.perl.announce since its inception. His offbeat humor and technical mastery have reached legendary proportions worldwide (but he probably started some of those legends himself). Randal's desire to give back to the Perl community inspired him to help create and provide initial funding for The Perl Institute. He is also a founding board member of the Perl Mongers (perl.org), the worldwide Perl grassroots advocacy organization. Since 1985, Randal has owned and operated Stonehenge Consulting Services, Inc. Randal can be reached for comment at merlyn@stonehenge.com or (503) 777-0095, and welcomes questions on Perl and other related topics.
brian d foy is a prolific Perl trainer and writer, and runs The Perl Review to help people use and understand Perl through educational, consulting, code review, and more. He's a frequent speaker at Perl conferences. He's the co-author of Learning Perl, Intermediate Perl, and Effective Perl Programming, and the author of Mastering Perl. He was an instructor and author for Stonehenge Consulting Services from 1998 to 2009, a Perl user since he was a physics graduate student, and a die-hard Mac user since he first owned a computer. He founded the first Perl user group, the New York Perl Mongers, as well as the Perl advocacy nonprofit Perl Mongers, Inc., which helped form more than 200 Perl user groups across the globe. He maintains the perlfaq portions of the core Perl documentation, several modules on CPAN, and some stand-alone scripts.
Tom Phoenix has been working in the field of education since 1982. After more than thirteen years of dissections, explosions, work with interesting animals, and high-voltage sparks during his work at a science museum, he started teaching Perl classes for Stonehenge Consulting Services, where he's worked since 1996. Since then, he has traveled to many interesting locations, so you might see him soon at a Perl Mongers' meeting. When he has time, he answers questions on Usenet's comp.lang.perl.misc and comp.lang.perl.moderated newsgroups, and contributes to the development and usefulness of Perl. Besides his work with Perl, Perl hackers, and related topics, Tom spends his time on amateur cryptography and speaking Esperanto. His home is in Portland, Oregon.
Product details
- Publisher : O'Reilly Media; 8th edition (September 21, 2021)
- Language : English
- Paperback : 395 pages
- ISBN-10 : 1492094951
- ISBN-13 : 978-1492094951
- Item Weight : 1.4 pounds
- Dimensions : 7 x 1 x 9 inches
- Best Sellers Rank: #472,503 in Books (See Top 100 in Books)
- #11 in Perl Programming
- #490 in Software Development (Books)
- #541 in Introductory & Beginning Programming
- Customer Reviews:
Important information
To report an issue with this product, click here.
About the author

Discover more of the author’s books, see similar authors, read author blogs and more
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on Amazon-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
OK, returning to this book, if you want to start with Perl this is the book to buy first.
Top reviews from other countries
第7版はv5.24対応で,今回の第8版はv5.34対応。v5.34に対応した記述,例えばpp.128-9にある(https?がhttps{,1}とも書ける)。
少し気になったことを。pp.137-8で,/\Ahttps?:/はlooks for an https only at the start of the stringなる旨でも文字列頭のhttpにもマッチするし,その次の/\.png\z/にマッチした時の出力メッセージが,その前の/\Ahttps?:/のときと同じ"found a URL\n"なのが残念。さらに細かいけど,同ページでprint if /\.png\Z/;とあるもののstatement modifiersの説明はもっと先p.181で,このifの使い方は,ここではまだ未知ではなかろうか。
$ /usr/local/bin/perl -v | head -2 | tail -1
This is perl 5, version 34, subversion 0 (v5.34.0) built for darwin-thread-multi-ld-2level
$ cat match.pl
#!/usr/local/bin/perl
use 5.010;
$_ = https; say "match!" if /^https{,1}$/;
if ("http\n" =~ /\Ahttps?\Z/) { say "match!" }
$ ./match.pl
match!
match!
$








