Résumé
Perl Debugged provides the expertise and solutions developers require for coding better, faster, and more reliably in Perl. Focusing on debugging, the most vexing aspect of programming in Perl, this example-rich reference and how-to guide minimizes development, troubleshooting, and maintenance time resulting in the creation of elegant and error-free Perl code.
Designed for the novice to intermediate software developer, Perl Debugged will save the programmer time and frustration in debugging Perl programs. Based on the authors’ extensive experience with the language, this book guides developers through the entire programming process, tackling the benefits, plights, and pitfalls of Perl programming. Beginning with a guided tour of the Perl documentation, the book progresses to debugging, testing, and performance issues, and also devotes a chapter to CGI programming in Perl. Throughout the book, the authors espouse defensible paradigms for improving the accuracy and performance of Perl code. In addition, Perl Debugged includes Scott and Wright’s "Perls of Wisdom" which summarize key ideas from each of the chapters, and an appendix containing a comprehensive listing of Perl debugger commands.
In this exceptional reference and debugging guide, the authors cover every aspect of efficient Perl programming, including:
- CGI programming–special tips for debugging this type of Perl program
- How to develop the proper mindset for developing and programming effectively in Perl
- Perl "gotchas"–how to understand them, work around them, and avoid them
- "Antibugging"–the authors’ rules of thumb on how to code defensively
- The Perl debugger –the authors’ guide to using this Perl built-in
- Common syntax errors and how to track down their causes
- Semantical errors–why code may appear correct but the programs do not work
- How to improve the performance of resource-hungry programs
- Tips and advice for programmers moving to Perl from other language environments
Focusing on the process of Perl programming and guidelines for identifying and correcting mistakes, Perl Debugged helps the developer to write better Perl programs immediately and become better programmers in general.
Contents
Preface.
Perlness.
Who Are You?
What This Book Covers.
Getting Perl.
Typographical Conventions.
For Further Reference.
Perl Versions.
Acknowledgments.
1. Introduction.
Why Perl?
Know the Environment.
Know the Language.
Online Documentation.
For Further Reference.
2. The Zen of Perl Developing.
Beliefs.
Behavior.
Improve Your Craft.
The Bottom Line.
3. Antibugging.
Writing Code.
Observation.
Documentation.
Developing.
Accident Prevention.
Tips for Reducing Complexity.
4. Perl Pitfalls. Syntactical Sugaring.
Regular Expressions.
Miscellaneous.
5. Tracing Code.
6. Testing Perl Programs.
Unit Testing.
System or Regression Testing.
Saturation Testing.
Acceptance Testing.
7. The Perl Debugger.
Starting the Debugger.
Getting Graphical.
8. Syntax Errors.
A Menagerie of Typos.
9. Run-Time Exceptions.
Check That Return Code!
Confession Is Good for the Soul.
10. Semantical Errors.
Reading Directories.
But What Did It Mean?
printf Formats Don't Impose Context.
Conditional my.
Bringing Some Closure.
11. Resource Failure. 1@AHEADS = Optimize for People First, Resources Later.
Making Things Better.
12. Perl as a Second Language. 1@AHEADS = Tips for Everyman.
Tips for the FORTRAN programmer.
Tips for the shell programmer.
Tips for the C++ or Java programmer.
13. Debugging CGI Programs.
Web Servers.
500 — Server Error.
Basics.
Security.
Heading Off Errors.
cgi-test.
Eavesdropping.
CGI.pm. 1@AHEADS = Command Line Testing. 1@AHEADS = Dying Young. 1@AHEADS = Debugger Interaction. 1@AHEADS = ptkdb.
14. Conclusion.
The End.
This Really Is the End.
Appendix A: Perl Debugger Commands.
Commands.
Options.
Environment Variables.
Appendix B: Perls of Wisdom.
Index.
L'auteur - Peter Scott
Peter Scott graduated from Cambridge University, England with a Master of Arts in Computer Science, and now lives in the Pacific Northwest with his wife Grace, two cats, and a parrot, at least one of which also uses Perl. He makes his living running his own business teaching Perl and using it in enterprise infrastructure.
L'auteur - Ed Wright
Ed Wright is a Software Engineer at the Jet Propulsion
Laboratory. He holds a Master of Science degree in
Engineering Mechanics and Astronautics from the University
of Wisconsin at Madison, a Master of Science in Physics
from the University of Louisville and a Bachelor of Science
in Mathematics from Auburn University. He currently leads
the JPL Perl Users Group.
Caractéristiques techniques
PAPIER | |
Éditeur(s) | Addison Wesley |
Auteur(s) | Peter Scott, Ed Wright |
Parution | 01/05/2001 |
Nb. de pages | 262 |
Format | 18,6 x 23,2 |
Couverture | Broché |
Poids | 596g |
Intérieur | Noir et Blanc |
EAN13 | 9780201700541 |
Avantages Eyrolles.com
Consultez aussi
- Les meilleures ventes en Graphisme & Photo
- Les meilleures ventes en Informatique
- Les meilleures ventes en Construction
- Les meilleures ventes en Entreprise & Droit
- Les meilleures ventes en Sciences
- Les meilleures ventes en Littérature
- Les meilleures ventes en Arts & Loisirs
- Les meilleures ventes en Vie pratique
- Les meilleures ventes en Voyage et Tourisme
- Les meilleures ventes en BD et Jeunesse