or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
17 used & new from $5.53

Have one to sell? Sell yours here
 
   
Express Checkout with PayPhrase
What's this? | Create PayPhrase
Sorry!
Perl Debugged
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get your Kindle here.
 
  

Perl Debugged (Paperback)

~ Peter J. Scott (Author), Ed Wright (Author)
4.8 out of 5 stars  See all reviews (9 customer reviews)

List Price: $34.95
Price: $26.56 & this item ships for FREE with Super Saver Shipping. Details
You Save: $8.39 (24%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Usually ships within 1 to 3 weeks.
Ships from and sold by Amazon.com. Gift-wrap available.

6 new from $9.99 11 used from $5.53

Frequently Bought Together

Perl Debugged + Effective Perl Programming: Writing Better Programs with Perl + Perl Hacks: Tips & Tools for Programming, Debugging, and Surviving
Price For All Three: $76.04

Some of these items ship sooner than the others. Show details

  • This item: Perl Debugged by Peter J. Scott

    Usually ships within 1 to 3 weeks.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Effective Perl Programming: Writing Better Programs with Perl by Joseph N. Hall

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Perl Hacks: Tips & Tools for Programming, Debugging, and Surviving by chromatic

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details


Customers Who Bought This Item Also Bought

Perl Hacks: Tips & Tools for Programming, Debugging, and Surviving

Perl Hacks: Tips & Tools for Programming, Debugging, and Surviving

by chromatic
5.0 out of 5 stars (10)  $19.79
Perl Best Practices

Perl Best Practices

by Damian Conway
4.5 out of 5 stars (35)  $26.40
Debugging Perl: Troubleshooting for Programmers

Debugging Perl: Troubleshooting for Programmers

by Martin C. Brown
5.0 out of 5 stars (3)  $43.95
Perl Medic: Transforming Legacy Code

Perl Medic: Transforming Legacy Code

by Peter J. Scott
4.4 out of 5 stars (7)  $30.39
Intermediate Perl

Intermediate Perl

by Randal L. Schwartz
4.5 out of 5 stars (10)  $26.39
Explore similar items

Editorial Reviews

Product Description

(Pearson Education) Saves programmers time and frustration by offering a guide through the entire programming process, showing how to completely debug Perl. Example rich and slightly humorous, the reference and guide minimizes the development, troubleshooting, and maintenance time developers must take to create elegant, errorless code. Softcover.


From the Inside Flap

 

Perlness In the world of languages, the country of Perl is the great melting pot which welcomes all cultures, religions, and beliefs. "Give me your tired, your poorly-supported programmers, your huddled masses yearning to be free of artificial limitations," says Perl, and those who land on its shores find an environment where they are no longer hampered by a language designer's whimsical notions of elegant semantics and stifling syntactical purity. Perl's universal availability and ease-of-use make it the most democratic programming language. Unlike many other languages, a relative beginner can write useful programs, whereas effective programmers in other languages normally need to spend a lot longer to learn syntax, operators, and functions. A Perl programmer may possess such expertise, or may be a newcomer who modified some example script to perform a new function. But the newcomer has another problem: lack of debugging skills. Experience forces the canny to develop an innate knack for debugging due to years of accumulated pain. We want to minimize that pain, because we have suffered it. Perl's ease of use allows programmers with little knowledge to create usable, if fragile, code. The amount of time it takes to debug a Perl program can vary dramatically from person to person. Our goal is to help you minimize the development, debugging, and maintenance time you need for your own Perl programs. Do not take the title of this book to imply we are debugging Perl itself in these pages. What few bugs exist in the Perl interpreter are a matter of minute exotica (or exotic minutiae), rapidly squashed by the fine volunteer crew supporting Perl. A more accurate title would have been Debugging Your Perl Programs, but that felt too pedestrian and loses the "unplugged" pun. We wrote this book because we wanted you to see the development process at work. Most books on programming contain carefully crafted examples honed through sweaty practice to work perfectly and stand as mute testimonial to the elegant style of the author. They don't show you the ugly, irritating process it took to get the examples into shape; yet those examples did not in fact spring into existence fully formed from the forehead of their creator. Because you will experience this same process when developing your programs, we want to guide you through it and describe various ways around the embarrassment, humiliation, and surprising pitfalls that stand between you and Great Programming. Within this book, we describe the most common and annoying mistakes a new Perl programmer might make, and then detail the procedures to identify and correct those bugs and any others. You should have some knowledge of Perl; several fine tutorials exist to free us from the onerous responsibility of explaining scalars and arrays and hashes and the like. This preface includes a few references to some of the most useful of these tutorials. We will not attempt to define or describe a proper programming "style." Style is as unique as an individual--but a few general rules create a common reference so that we can easily read each other's programs. Neither is this a "how to program" book. Although we will probe into the mechanics and underpinnings of the general principle of programming at times, it is not our intention to inculcate a complete newcomer with the mindset of the programmer's discipline.

Who Are You? If you've been programming in Perl anywhere from a week to a year and want to speed up your development cycle, this book is for you. We'll also address some issues related to developing in a team. This book is intended to assist those who have started learning Perl by providing practical advice on development practices.

What This Book Covers Here's what you'll find in the rest of this book: Chapter 1: Introduction and a guided tour of the Perl documentation Chapter 2: Developing the right mindset for programming and developing effectively Chapter 3: "Gotchas" in Perl: Working your way around some of the tricky things to understand or get right in Perl programming Chapter 4: Antibugging: How to code defensively Chapter 5: How to instrument your code Chapter 6: How to test your Perl programs Chapter 7: A tour of the perl debugger: our guide to using this built-in tool Chapter 8: Types of syntax error and how to track down their causes Chapter 9: Run-time errors Chapter 10: Semantical errors: When your program appears to work but doesn't do the right thing Chapter 11: How to improve the performance of a resource-hungry (memory, CPU cycles, and so on) program Chapter 12: Tips and pitfalls for people coming to Perl from other languages Chapter 13: Common Gateway Interface (CGI) programming: special tips for debugging this type of Perl program Chapter 14: Conclusion Appendix A: Reference for the Perl debugger commands Appendix B: List of our "Perls of Wisdom" We will spend a lot of time going through examples of problems and how you might debug them.

Getting Perl While this isn't a book about how to install or build perl,1 we owe you at least rudimentary instructions on how to get a perl of your own. For Windows machines, get the free ActivePerl distribution: activeState/ActivePerl/

download.htm For Macintoshes: cpan/ports/index.html#mac For binary distributions for all other machines: cpan/ports/ For the source of perl itself: cpan/src/

Building perl from source on a supported Unix architecture requires just these commands after you download and unpack the right file: ./Configure make make test make install # if the make test succeeds The Configure step asks you zillions of questions, and most people won't have a clue what many of those questions are talking about; but the default answers Configure recommends are usually correct. For educational purposes, you may want to build a perl that has debugging enabled. (Here we refer to a perl that lets you use the special -D flag to enable the output of information that tells you what perl is doing with your program. This has nothing to do with Perl's built-in interactive debugger--which we discuss in Chapter 7--all perls have that.) If you want to do that, build perl from the source, and when Configure asks, " Any additional cc flags? " paste in whatever it already shows between brackets as a default and add " -DDEBUGGING ". See the perlrun POD page (explained later) for more information. We occasionally refer to modules that are not part of the core Perl distribution but that can be found on the Comprehensive Perl Archive Network (CPAN). For instructions on how to find, download, and install a module from CPAN, see cpan/misc/cpan-faq.html.

For Further Reference Visit this book's Web site at perldebugged . Get introductions to Perl programming from the following (in rough order of usefulness): Learning Perl, 2nd ed., by Randal Schwartz and Tom Christiansen (O'Reilly & Associates, 1997) Programming Perl, 3rd ed., by Larry Wall, Tom Christiansen, and Jon Orwant (O'Reilly & Associates, 2000) Perl, the Programmer's Companion, by Nigel Chapman (John Wiley & Sons, 1998) Elements of Programming with Perl, by Andrew Johnson (Manning Publications, 1999) Effective Perl Programming, by Joseph Hall with Randal Schwartz (Addison-Wesley, 1998)

Perl Versions In this book, we refer to the latest "stable" version of Perl, which is 5.6.0 as of this writing. The vast majority of what we say works unaltered on older versions of Perl 5, but not Perl 4. If you use any version of Perl older than 5.004_04, you should upgrade; 5.003 had issues such as security problems and memory leaks. You can find out the version number of your perl by passing it the -v flag: % perl -v This is perl, v5.6.0 built for i586-linux Copyright 1987-2000, Larry Wall ... Perl won't execute a script named on the command line if the -v flag is present. A more detailed description of your perl's configuration can be obtained with the -V flag; if you issue a bug report, the facility for doing that automatically includes this information with your report. A separate development track exists for Perl; you will know if you have one of those versions because the release number either contains an underscore followed by a number of 50 or larger or contains an odd number between two dots. Nothing is guaranteed to work in such a distribution; it's intended for testing. If you find you have one and you didn't want it, the person who downloaded your perl probably visited the wrong FTP link. It was announced at the fourth annual Perl Conference (Monterey, California, July 2000) that Perl 6 development was beginning in earnest, and backward compatibility need not stand in the way of doing good things. As of press time, discussion continues on new language features.

0201700549P04062001


Product Details

  • Paperback: 288 pages
  • Publisher: Addison Wesley Publishing Company; 1st edition (March 27, 2001)
  • Language: English
  • ISBN-10: 0201700549
  • ISBN-13: 978-0201700541
  • Product Dimensions: 9.1 x 7.2 x 0.8 inches
  • Shipping Weight: 1.3 pounds (View shipping rates and policies)
  • Average Customer Review: 4.8 out of 5 stars  See all reviews (9 customer reviews)
  • Amazon.com Sales Rank: #605,117 in Books (See Bestsellers in Books)

More About the Author

Peter Scott
Discover books, learn about writers, read author blogs, and more.

Visit Amazon's Peter Scott Page

Look Inside This Book


What Do Customers Ultimately Buy After Viewing This Item?

Perl Debugged
72% buy the item featured on this page:
Perl Debugged 4.8 out of 5 stars (9)
$26.56
Learning Perl, 5th Edition
11% buy
Learning Perl, 5th Edition 4.2 out of 5 stars (301)
$25.33
Beginning Perl, Second Edition
10% buy
Beginning Perl, Second Edition 4.7 out of 5 stars (20)
$27.04
Intermediate Perl
4% buy
Intermediate Perl 4.5 out of 5 stars (10)
$26.39

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(3)

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

9 Reviews
5 star:
 (7)
4 star:
 (2)
3 star:    (0)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.8 out of 5 stars (9 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
23 of 24 people found the following review helpful:
5.0 out of 5 stars Super advice for Perl programmers, and others, May 14, 2001
By joe_n_bloe (Ester AK USA) - See all my reviews
  
I'm tremendously pleased with Perl Debugged. It's half a book about Perl debugging, and half a book with more general advice, all pleasantly blended together. Peter and Ed take you on an unrivaled tour of the ups and downs of Perl debugging. It's sort of like Effective Perl Programming's "Debugging" chapter except hugely and brilliantly expanded. It's comprehensive and imaginative without being pedantic. It covers the Perl debugger (of course), it covers the different types of errors you'll encounter in Perl programs, it covers debugging strategies, and (very important) it covers the always-icky topic of debugging CGI programs. And some other topics ....

Even experienced Perl programmers will enjoy reading this book. You may think you've seen it all but I guarantee you that you haven't seen all of the examples of weirdness featured herein. It reminds me of Kon and Bal's debugging "brainteasers" in Apple's now defunct Develop magazine.

I *highly* recommend Perl Debugged to anyone at the beginning or intermediate stage in Perl programming, particularly to programmers who have less than 2-4 years of debugging experience in general. An experienced programmer, on the other hand, will want to buy a copy (copies?) to browse and then hand to his junior co-worker(s) with stern instructions to "read first, code later." (Reminds me of the time I bought Bugs in Writing.)

Apparently the authors have a way with words. The prose is unusually good--not just by the standards of technical books--colorful, extremely clear, and enjoyable to read. (The illustrations by Peter's sister-in-law are great.) About the only thing that "bugs" me is the authors' use of "semantical" in preference to "semantic."

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
12 of 12 people found the following review helpful:
5.0 out of 5 stars Great Perl Tips Presented With Humor, April 2, 2002
By Philip R. Heath (Hurst, TX United States) - See all my reviews
(TOP 500 REVIEWER)    (REAL NAME)      
This book is a must for perl programmers. Throughout the book, the authors develop 46 "Perls of Wisdom". These guidelines will help you write code with fewer bugs and help you fix bugs when they do come up - and they will! I tend to enjoy software books with a little humor to them, and this one fits the bill. Here are the highlights from the book:

Ch. 1-

Gives some background on the perl language and good tips on accessing the documentation for various parts of perl on various platforms.

Ch. 2-

Kind of a touchy/feely chapter; however, there is wisdom in it. It helps you understand how your attitudes, beliefs, and behaviors affect your code. Don't skip it.

Ch. 3-

This chapter gives you some good advice on how to avoid bugs in your program. One of these is documentation. I've found that documenting something makes you think about things you otherwise might not have.

Ch. 4-

Gives some common sources of bugs in perl including syntax, precedence, and regular expressions.

Ch. 5-

How to get formatted printouts of variables in your using Data::Dumper. This is a step up from print statements, and is easy to use.

Ch. 6-

Includes good information on testing your code and the perl modules available to assit you in test harnesses and coverage tests.

Ch. 7-

This is the gem of the book. It is a step by step guide to using the perl debugger. If reading man pages makes your head hurt, you will find this tutorial much more user friendly.

Ch. 8-

An excellent chapter on interpreting the syntax error reports that perl spits out.

Ch. 9-

The runtime exception counterpart to the previous chapter. It contains a discussion of perl exception handling vs. that of java or c++.

Ch. 10-

This chapter deals with the tough topic of code that compiles and runs, but gives the wrong answer. It gives techinques for seeing how perl interpreted your code.

Ch. 11-

This chapter gives you advice for improving performance using the Benchmark module.

Ch. 12-

A nice comparison to other languages. If you are fluent in another programming language, it is helpful to know how the it compares to perl.

The examples in this book are what make it the most useful. They show you how to use various perl modules to make your code better. Being new to the language, I wasn't even aware that some of these modules existed. Unless you are a perl master already, you should find plenty of useful information in Perl Debugged.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
2 of 2 people found the following review helpful:
4.0 out of 5 stars Ideal for the neophyte programmer, July 16, 2007
The ideal reader of this book would be someone who's been exposed to most of Perl and knows about packages, modules and references (the Llama/Alpaca combo, for instance), but who isn't necessarily experienced with other languages. If you are that sort of person, this should be close to the top of your Perl reading list.

There's an abundance of good material to be found here -- yes, there's an entire chapter on working the Perl debugger, but don't let the book's title fool you, it's not just about debugging. There's also advice on code style and layout, common idioms and features of Perl such as the behaviour of $_, autovivification, local, and optional parentheses.

Additionally, there are introductions to logging (in the context of debug flags), unit testing, code coverage, and error handling. Rounding off the book are chapters on benchmarking, profiling and some simple optimisation techniques (e.g. don't shell out to an external program if you can do the task in perl, use pipes and fork instead of writing to a temporary file), a chapter of tips for programmers coming to Perl from Java, shell scripting, C, C++ and Fortran. Finally there's a chapter covering debugging CGI programs.

Throughout, there's also some more philosophical (or touchy-feely) material, with exhortations to being a good citizen of the Republic of Perl and your work environment. If you're a more experienced developer, and you've read the likes of Code Complete and Refactoring, much of this is either obvious or has been given in more detail in other books, which is why I think the less experienced you are, the more you'll get out of it.

If you've been around the block a couple of times, I think you'll find that while there is a lot of ground covered, it's not particular deep. It's good to have issues like unit testing, profiling, benchmarking and logging introduced, but you'll quickly have to look elsewhere for more detailed (not to mention up-to-date) information for use in your own code. If you've read the likes of Effective Perl Programming, Perl Testing and of course, the mighty Perl Best Practices, there's not a lot left to see. However, chapter 8 presents some neat puzzlers, where a seemingly innocuous piece of code is suffering from a missing, misplaced or transposed character, and some useful tips for interpreting the syntax errors are presented.

Overall, this is nicely written in an unfussy, friendly style which assumes the reader is not a complete beginner. Ungrizzled non-veterans of Perl should consider this well worth taking a look at, especially as a companion to Perl Medic.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

5.0 out of 5 stars Perl Debugged book review
This was a surprise gem for me. I had been looking at several Perl books that covered debugging. I already have a couple of good references for the Perl debugger; what I wanted... Read more
Published 6 months ago by A. KEITH

5.0 out of 5 stars Valid and useful points for the critical operation of debugging Perl programs
I am what the authors occasionally describe as a diehard C/C++/Java programmer and have taught this style of language for over 20 years. Read more
Published 14 months ago by Charles Ashbacher

4.0 out of 5 stars Finally
Finally, a book not only on how to use the debugger, but when and why to use the debugger. Great quick read that will add another level to your perl programming that is... Read more
Published 16 months ago by Michael P. Quinn

5.0 out of 5 stars great meta-book on perl
Fun book, of 3 perl metabooks (others Hall/Schwartz Efficient Perl (everybody shd read) and Brown's Debugging Perl (I haven't read much) ). Read more
Published on April 25, 2001

5.0 out of 5 stars great meta-book on perl
Fun book, of 3 perl metabooks (others Hall/Schwartz Efficient Perl (everybody shd read) and Brown's Debugging Perl (I haven't read much) ). Read more
Published on April 25, 2001

5.0 out of 5 stars great meta-book on perl
Fun book, of 3 perl metabooks (others Hall/Schwartz Efficient Perl (everybody shd read) and Brown's Debugging Perl (I haven't read much) ). Read more
Published on April 25, 2001

Only search this product's reviews



Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Discussion Replies Latest Post
Textbooks for Kindle DX? 61 1 day ago
textbook scam 66 5 days ago
Amazon is a great place to buy textbooks! 35 18 days ago
Search Customer Discussions
Search all Amazon discussions
   



So You'd Like to...


Create a guide

Product Information from the Amapedia Community

Beta (What's this?)


Look for Similar Items by Category


Look for Similar Items by Subject

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Your Recent History

 (What's this?)

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.