Home > Store > Web Development > Perl

Perl Medic: Transforming Legacy Code

Register your product to gain access to bonus material or receive a coupon.

Perl Medic: Transforming Legacy Code

Best Value Purchase

Book + eBook Bundle

  • Your Price: $43.19
  • List Price: $71.98
  • Includes EPUB, MOBI, and PDF
  • About eBook Formats
  • This eBook includes the following formats, accessible from your Account page after purchase:

    ePub EPUB The open industry format known for its reflowable content and usability on supported mobile devices.

    MOBI MOBI The eBook format compatible with the Amazon Kindle and Amazon Kindle applications.

    Adobe Reader PDF The popular standard, used most often with the free Adobe® Reader® software.

    This eBook requires no passwords or activation to read. We customize your eBook by discretely watermarking it with your name, making it uniquely yours.

More Purchase Options

Book

  • Your Price: $31.99
  • List Price: $39.99
  • Usually ships in 24 hours.

eBook (Watermarked)

  • Your Price: $25.59
  • List Price: $31.99
  • Includes EPUB, MOBI, and PDF
  • About eBook Formats
  • This eBook includes the following formats, accessible from your Account page after purchase:

    ePub EPUB The open industry format known for its reflowable content and usability on supported mobile devices.

    MOBI MOBI The eBook format compatible with the Amazon Kindle and Amazon Kindle applications.

    Adobe Reader PDF The popular standard, used most often with the free Adobe® Reader® software.

    This eBook requires no passwords or activation to read. We customize your eBook by discretely watermarking it with your name, making it uniquely yours.

About

Features

The first book to explain how to understand, maintain, update, and improve existing Perl code

° Perl is especially susceptible to maintenance problems, because of its flexible style and ad hoc origins

° Author uses a medical theme throughout, playing off the similarities of doctoring or healing broken code

° Contains the most comprehensive treatment of testing Perl programs ever published, as well as the most comprehensive discussion of Perl version differences

Description

  • Copyright 2004
  • Dimensions: 7x9-1/4
  • Pages: 336
  • Edition: 1st
  • Book
  • ISBN-10: 0-201-79526-4
  • ISBN-13: 978-0-201-79526-4

Bring new power, performance, and scalability to your existing Perl code!

  • Cure whatever ails your Perl code!
  • Maintain, optimize, and scale any Perl software... whether you wrote it or not
  • Perl software engineering best practices for enterprise environments
  • Includes case studies and code in a fun-to-read format
Today's Perl developers spend 60-80% of their time working with existing Perl code. Now, there's a start-to-finish guide to understanding that code, maintaining it, updating it, and refactoring it for maximum performance and reliability. Peter J. Scott, lead author of Perl Debugged, has written the first systematic guide to Perl software engineering. Through extensive examples, he shows how to bring powerful discipline, consistency, and structure to any Perl program-new or old. You'll discover how to:
  • Scale existing Perl code to serve larger network, Web, enterprise, or e-commerce applications
  • Rewrite, restructure, and upgrade any Perl program for improved performance
  • Bring standards and best practices to your entire library of Perl software
  • Organize Perl code into modules and components that are easier to reuse
  • Upgrade code written for earlier versions of Perl
  • Write and execute better tests for your software...or anyone else's
  • Use Perl in team-based, methodology-driven environments
  • Document your Perl code more effectively and efficiently

If you've ever inherited Perl code that's hard to maintain, if you write Perl code others will read, if you want to write code that'll be easier for you to maintain, the book that comes to your rescue is Perl Medic.

If you code in Perl, you need to read this book.–Adam Turoff, Technical Editor, The Perl Review.

Perl Medic is more than a book. It is a well-crafted strategy for approaching, updating, and furthering the cause of inherited Perl programs.–Allen Wyke, co-author of several computer books including JavaScript Unleashed and Pure JavaScript.

Scott's explanations of complex material are smooth and deceptively simple. He knows his subject matter and his craft-he makes it look easy. Scott remains relentless practical-even the 'Analysis' chapter is filled with code and tests to run.–Dan Livingston, author of several computer books including Advanced Flash 5: Actionscript in Action



Sample Content

Online Sample Chapter

Test Now, Test Forever: A Philosophy of Perl Programming

Downloadable Sample Chapter

Download the Sample Chapter related to this title.

Sample Pages

Download the sample pages (includes Chapter 3 and Index)

Table of Contents



Preface.

Perl or perl? Obtaining Perl. Historical Perl. Who This Book Is For. Typographical Conventions. For Further Reference. Perl Versions. Perl 6. Acknowledgments.



1. Introduction (First Response).

First Things First. Reasons for Inheritance. What Next? Observe the Program in Its Natural Habitat. Get Personal. Strictness. Warnings.



2. Surveying the Scene.

Versions. Part or Whole? Find the Dependencies.



3. Test Now, Test Forever (Diagnosis).

Testing Your Patience. Extreme Testing. An Example Using Test: Modules. Testing Legacy Code. A Final Encouragement.



4. Rewriting (Transplants).

Strategizing. Why Are You Doing This? Style. Comments. Restyling. Variable Renaming. Editing. Line Editing. Antipatterns. Evolution.



5. The Disciplined Perl Program.

Package Variables vs Lexical Variables. Warnings and Strictness. use strict in Detail. use warnings in Detail. Selective Disabling. Caveat Programmer. Perl Poetry.



6. Restructuring (The Operating Table).

Keep It Brief. Cargo Cult Perl. Escaping the Global Variable Trap. Debugging Strategies.



7. Upgrading (Plastic Surgery).

Strategies. Perl 4. Perl 5.000. Perl 5.001. Perl 5.002. Perl 5.003. Perl 5.004. Perl 5.005. Perl 5.6.0. Perl 5.6.1. Perl 5.8.0. Perl 5.8.1. Perl 5.8.2. Perl 5.8.3.



8. Using Modules (Genetic Enhancement).

The Case for CPAN. Using CPAN. Improving Code with Modules. Custom Perls.



9. Analysis (Forensic Pathology).

Static Analysis. Eliminating Superfluous Code. Finding Inefficient Code. Debugging.



10. Increasing Maintainability (Prophylaxis).

Making It Robust. Advanced Brevity. Documentation. Custom Warnings. Version Control System Integration.



11. A Case Study.

The Setup. Triage. Desperately Seeking Sanity. Coming into the 21st Century. Incorporating Modules Effectively, Part 1. Incorporating Modules Effectively, Part 2. Making It Mature, Part 1. Making It Mature, Part 2. Making It Mature, Part 3. Advanced Modification.



12. Conclusion (Prognosis).

In Conclusion. Perl People. A Final Thought.



Appendix: Source Code.

Tie::Array::Bounded. Benchmark::TimeTick. smallprofpp.



Bibliography.


Index.


About the Author.

Updates

Submit Errata

More Information

ONE MONTH ACCESS!

WITH PURCHASE


Get unlimited 30-day access to thousands of Books & Training Videos about technology, professional development and digital media If you continue your subscription after your 30-day trial, you can receive 30% off a monthly subscription to the Safari Library for up to 12 months.