did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780201700541

Perl Debugged

by
  • ISBN13:

    9780201700541

  • ISBN10:

    0201700549

  • Format: Paperback
  • Copyright: 2001-03-01
  • Publisher: Pearson P T R
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $34.95 Save up to $3.46
  • Digital
    $31.49
    Add to Cart

    DURATION
    PRICE

Supplemental Materials

What is included with this book?

Summary

Most Perl programmers struggle with debugging, learning the hard way -- and wasting time, money, and energy. In Debugging Perl, two leading Perl developers offer practical techniques that can help you debug Perl code faster and with less frustration, avoid problems in the first place, and optimize every Perl program you write. The authors start by introducing the right mindset for Perl development and debugging: attitudes, beliefs, and behavior that lead to successful code. Next, you'll discover how to avoid problems by "coding defensively" and reducing the complexity of your code. Debugging Perl identifies problems that occur repeatedly in Perl code, showing exactly how to identify and avoid syntax errors, run-time exceptions, semantical errors, resource failures, and the unique problems associated with Perl CGI code. You'll walk through tracing code, and every stage of a rigorous testing process: inspection, unit testing, regression testing, saturation testing, and acceptance testing. The book includes thorough coverage of the Perl debugger, as well as a detailed Appendix presenting debugger commands. For every Perl programmer: new and intermediate-level Perl programmers seeking to save time and money, and advanced Perl programmers seeking to fine-tune their code and mentor others.

Author Biography

Peter Scott makes his living running his own business, teaching Perl, and using it in enterprise infrastructure. Ed Wright is a Software Engineer at the Jet Propulsion Laboratory.

Table of Contents

Preface xi
Perlness xii
Who Are You? xiii
What This Book Covers xiv
Getting Perl xv
Typographical Conventions xvi
For Further Reference xvii
Perl Versions xvii
Acknowledgments xix
Introduction
1(16)
Reality
2(1)
Why Perl?
3(2)
Know the Environment
5(1)
Know the Language
5(2)
Online Documentation
7(8)
References
15(2)
The Zen of Perl Developing
17(10)
Attitudes
19(2)
Beliefs
21(2)
Behavior
23(2)
Improve Your Craft
25(1)
The Bottom Line
25(2)
Antibugging
27(26)
Beginning
28(1)
Writing Code
29(5)
Observation
34(2)
Documentation
36(4)
Developing
40(2)
Accident Prevention
42(5)
Tips for Reducing Complexity
47(6)
Perl Pitfalls
53(24)
Syntactical Sugaring
54(8)
The Hall of the Precedence
62(5)
Regular Expressions
67(1)
Miscellaneous
67(10)
Tracing Code
77(12)
Dumping Your Data
79(1)
Making it Optional
80(2)
Raise the Flag
82(2)
At Your Command
84(3)
Taking the Long Way Around
87(2)
Testing Perl Programs
89(16)
Inspection Testing
92(1)
Unit Testing
93(3)
System or Regression Testing
96(6)
Saturation Testing
102(1)
Acceptance Testing
103(1)
References
103(2)
The Perl Debugger
105(22)
Basic Operation
106(1)
Starting
107(14)
Getting Graphical
121(6)
Syntax Errors
127(16)
Typo Pathologies
129(9)
A Menagerie of Typos
138(5)
Run-Time Exceptions
143(18)
Symbolic References
146(6)
Check That Return Code!
152(2)
Taking Exception to Yourself
154(1)
Playing Catch-Up
155(4)
Confession Is Good for the Soul
159(2)
Semantical Errors
161(12)
A Bit Illogical
162(1)
Reading Directories
163(2)
But What Did It Mean?
165(4)
printf Formats Don't Impose Context
169(1)
Conditional my
169(2)
Bringing Some Closure
171(2)
Resource Failure
173(22)
Optimize for People First, Resources Later
174(2)
Benchmark It!
176(9)
Making Things Better
185(10)
Perl as a Second Language
195(14)
Tips for Everyman
196(1)
Tips for the C Programmer
197(3)
Tips for the FORTRAN Programmer
200(2)
Tips for the Shell Programmer
202(2)
Tips for the C++ or Java Programmer
204(5)
Debugging CGI Programs
209(24)
CGI
210(1)
Web Servers
211(1)
500---Server Error
212(2)
Basics
214(1)
Security
214(4)
Heading Off Errors
218(2)
cgi-test
220(1)
Eavesdropping
220(4)
CGI.pm
224(1)
Command Line Testing
225(2)
Dying Young
227(1)
Debugger Interaction
228(2)
ptkdb
230(3)
Conclusion
233(4)
Finis
234(1)
The End
234(2)
This Really is the End
236(1)
Appendix A Perl Debugger Commands 237(14)
A.1 General Syntax
238(1)
A.2 Commands
239(6)
A.3 Options
245(3)
A.4 Environment Variables
248(3)
Appendix B Perls of Wisdom 251(4)
Index 255

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program