Try Kindle Edition $0.00
Try Kindle Edition $0.00
- Highlight, take notes, and search in the book
Buy new:
$20.39$20.39
FREE delivery: Tuesday, March 14 on orders over $25.00 shipped by Amazon.
Ships from: Amazon Sold by: Falcon-Store
Buy used: $8.69
Other Sellers on Amazon
FREE Shipping
+ $3.99 shipping
86% positive over last 12 months
Usually ships within 4 to 5 days.
& FREE Shipping
91% positive over last 12 months
Usually ships within 4 to 5 days.
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required. Learn more
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Perl Best Practices: Standards and Styles for Developing Maintainable Code 1st Edition
Many programmers code by instinct, relying on convenient habits or a "style" they picked up early on. They aren't conscious of all the choices they make, like how they format their source, the names they use for variables, or the kinds of loops they use. They're focused entirely on problems they're solving, solutions they're creating, and algorithms they're implementing. So they write code in the way that seems natural, that happens intuitively, and that feels good.
But if you're serious about your profession, intuition isn't enough. Perl Best Practices author Damian Conway explains that rules, conventions, standards, and practices not only help programmers communicate and coordinate with one another, they also provide a reliable framework for thinking about problems, and a common language for expressing solutions. This is especially critical in Perl, because the language is designed to offer many ways to accomplish the same task, and consequently it supports many incompatible dialects.
With a good dose of Aussie humor, Dr. Conway (familiar to many in the Perl community) offers 256 guidelines on the art of coding to help you write better Perl code--in fact, the best Perl code you possibly can. The guidelines cover code layout, naming conventions, choice of data and control structures, program decomposition, interface design and implementation, modularity, object orientation, error handling, testing, and debugging.
They're designed to work together to produce code that is clear, robust, efficient, maintainable, and concise, but Dr. Conway doesn't pretend that this is the one true universal and unequivocal set of best practices. Instead, Perl Best Practices offers coherent and widely applicable suggestions based on real-world experience of how code is actually written, rather than on someone's ivory-tower theories on howsoftware ought to be created.
Most of all, Perl Best Practices offers guidelines that actually work, and that many developers around the world are already using. Much like Perl itself, these guidelines are about helping you to get your job done, without getting in the way.
Praise for Perl Best Practices from Perl community members:
"As a manager of a large Perl project, I'd ensure that every member of my team has a copy of Perl Best Practices on their desk, and use it as the basis for an in-house style guide."-- Randal Schwartz
"There are no more excuses for writing bad Perl programs. All levels of Perl programmer will be more productive after reading this book."-- Peter Scott
"Perl Best Practices will be the next big important book in the evolution of Perl. The ideas and practices Damian lays down will help bring Perl out from under the embarrassing heading of "scripting languages". Many of us have known Perl is a real programming language, worthy of all the tasks normally delegated to Java and C++. With Perl Best Practices, Damian shows specifically how and why, so everyone else can see, too."-- Andy Lester
"Damian's done what many thought impossible: show how to build large, maintainable Perl applications, while still letting Perl be the powerful, expressive language that programmers have loved for years."-- Bill Odom
"Finally, a means to bring lasting order to the process and product of real Perl development teams."-- Andrew Sundstrom
"Perl Best Practices provides a valuable education in how to write robust, maintainable Perl, and is a definitive citation source when coaching other programmers."-- Bennett Todd"I've been teaching Perl for years, and find the same question keeps being asked: Where can I find a reference for writing reusable, maintainable Perl code? Finally I have a decent answer."-- Paul Fenwick"At last a well researched, well thought-out, comprehensive guide to Perl style. Instead of each of us developing our own, we can learn good practices from one of Perl's most prolific and experienced authors. I recommend this book to anyone who prefers getting on with the job rather than going back and fixing errors caused by syntax and poor style issues."-- Jacinta Richardson"If you care about programming in any language read this book. Even if you don't intend to follow all of the practices, thinking through your style will improve it."-- Steven Lembark"The Perl community's best author is back with another outstanding book. There has never been a comprehensive reference on high quality Perl coding and style until Perl Best Practices. This book fills a large gap in every Perl bookshelf."-- Uri Guttman- ISBN-100596001738
- ISBN-13978-0596001735
- Edition1st
- PublisherO'Reilly Media
- Publication dateJuly 22, 2005
- LanguageEnglish
- Dimensions7 x 0.98 x 9.19 inches
- Print length544 pages
Customers who viewed this item also viewed
Editorial Reviews
About the Author
Damian Conway holds a PhD in Computer Science and is an honorary Associate Professor with the School of Computer Science and Software Engineering at Monash University, Melbourne, Australia.Currently he runs an international IT training company--Thoughtstream--which provides programmer development from beginner to masterclass level throughout Europe, North America, and Australasia.Damian was the winner of the 1998, 1999, and 2000 Larry Wall Awards for Practical Utility. The best technical paper at the annual Perl Conference was subsequently named in his honour. He is a member of the technical committee for The Perl Conference, a keynote speaker at many Open Source conferences, a former columnist for The Perl Journal, and author of the book Object Oriented Perl. In 2001 Damian received the first "Perl Foundation Development Grant" and spent 20 months working on projects for the betterment of Perl.A popular speaker and trainer, he is also the author of numerous well-known Perl modules, including Parse::RecDescent (a sophisticated parsing tool), Class::Contract (design-by-contract programming in Perl), Lingua::EN::Inflect (rule-based English transformations for text generation), Class::Multimethods (multiple dispatch polymorphism), Text::Autoformat (intelligent automatic reformatting of plaintext), Switch (Perl's missing case statement), NEXT (resumptive method dispatch), Filter::Simple (Perl-based source code manipulation), Quantum::Superpositions (auto-parallelization of serial code using a quantum mechanical metaphor), and Lingua::Romana::Perligata (programming in Latin).Most of his time is now spent working with Larry Wall on the design of the new Perl 6 programming language.
Product details
- Publisher : O'Reilly Media; 1st edition (July 22, 2005)
- Language : English
- Paperback : 544 pages
- ISBN-10 : 0596001738
- ISBN-13 : 978-0596001735
- Item Weight : 1.63 pounds
- Dimensions : 7 x 0.98 x 9.19 inches
- Best Sellers Rank: #1,596,261 in Books (See Top 100 in Books)
- #55 in Perl Programming
- #611 in JavaScript Programming (Books)
- #2,614 in Software Development (Books)
- Customer Reviews:
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.
Perl 5.8.x and sheds light on all the corners of the language except
one. I didn't understand why there is no info on Win32 Perl (use
"chomp" instead of "chop", stuff like that). The book would have been
better if it hadn't shied away from that. It seems like Conway
decided to leave OS-specific best practices for another book. Apart
from that one gripe the book is quite good and will force the reader
to think about ways to improve his programming even though no one will
agree with everything. The books strongest point is that it touches
on the oldest parts of the language and also some really new stuff
like importing Perl 6 behavior via CPAN modules, and ties it all
together into a coherent body of thought. The thing that really
shines is how much Conway understands how Perl works as a programming
language and is honest about where it's lacking. Apart from the
absence of any Win32 or other OS-specific content, this book is a
treasure and worth owning and referring to often.
Being A Good Developer I have purchased a number of perl books, and several of those have been useful. The problem is that there's a tremendous amount to remember, especially if you're not coding 100% in perl, especially since encyclopediac reference books just don't have time for the 'why' aspect.
This book excels in a few important ways:
1) There's always a 'why' given, and the right way and the wrong way are contrasted. This makes it, for me, far easier to remember things. It helps that the author uses English very well, and I virtually never find myself wondering what he meant. (In too many programming books, there's just not enough editing of the explanations, and very poor English.)
2) While I don't always agree with the author's best practices, most of the time I do, and he always makes his case well.
3) He shows both 'before and after' code, and gets the amount of code needed to make the point exactly right. I almost never find myself flipping past over-long examples, nor do I find myself not getting things because he's too concise.
This book was both highly useful and a pleasure to read. (Perl is indeed the dark side, but now I revel in the dark side.)
Learning Perl
Intermediate Perl
I don't agree with everything in the book, far from it. For example I'm not using inside-out objects. But I have adopted a number of the practices. The real value of the book for me was learning more about Perl as I evaluated each recommendation. At my level of Perl at the time I found this book more understandable than Effective Perl Programming: Ways to Write Better, More Idiomatic Perl (2nd Edition) (Effective Software Development Series) which is more of an advanced Perl book.
program in. I've been writing code for three decades and have
programmed in almost two dozen languages and the priorities are always
the same when writing / reviewing code: maintainability, efficiency and
robustness. Every dictum in this book clearly advances one or more of
these priorities. If you're like me, you'll wish you had this book when
you started your software engineering career.
For development teams, this book is an instant win. With any
development team, there is always a discussion as to what coding
standards to use. Perl BP can be used to short-circuit such debate, to
the benefit of everyone involved.
Of course, not everyone will be happy with the standards outlined in the
book. Before I plunged in, I skimmed through the book and found things
that I disagreed with: K&R braces; loop labeling; no unless statements;
postfix if; etc. The arguments made in the book, however, are so
compelling that I'm now gladly writing my code to conform with them.
I always feel fortunate when I read a book that makes me want to change
my behavior for the better. Perl BP is one of these books.
Top reviews from other countries
I don't agree with many of his suggestions, but the most important thing with Perl is to have a style guide and that everyone on your team uses it. I'm not about to write my own rules, so I will happily adopt Damian's recommendations for the sake of standardisation.
There are instructions on how to code in the way of recommended methods but they are not exactly for the sort of people who are wanting to learn them in more depth.
It is more of a book that gives a good overview of the best practices. ;)
Bareword file handle opened at line 84, column 9. See pages 202,204 of PBP.
Two-argument "open" used at line 84, column 9. See page 207 of PBP.
Les pages en question se réfèrent à la version imprimée de Perl Best Practice (d'où "PBP") ...de 544 pages.
La version kindle est fragmentée en 15372 pages et il est impossible d'établir les correspondances, module et ouvrage étant en pratique généralement toujours utilisés de concert…
Quand à lire 15372 pages tronçonnées sans logique ! (l'index/table des matière est une bien piètre consolation)
Faites attention avant de commander des ouvrages scientifiques ou techniques plutôt ardus au format kindle, vous risquez de sérieuses déconvenues !
Das Buch ist Gold wert, für jeden, der mehr als einen Dreizeiler programmiert.
Es kann professionell genutzt werden; angeblich gibt es Firmen, bei denen dieses Buch einfach der Programmierstandard ist.
Und das ist auch gut so!






