Mastering Perl

This is the third in O'Reilly's series of landmark Perl tutorials, which started with Learning Perl, the bestselling introduction that taught you the basics of Perl syntax, and Intermediate Perl, which taught you how to create re-usable Perl software. Mastering Perl pulls everything toget...

Descripción completa

Detalles Bibliográficos
Autor principal: foy, brian d. (-)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Sebastopol : O'Reilly Media 2007.
Edición:1st edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627023006719
Tabla de Contenidos:
  • Table of Contents; Foreword; Preface; Structure of This Book; Conventions Used in This Book; Using Code Examples; Safari® Enabled; Comments and Questions; Acknowledgments; Chapter 1. Introduction: Becoming a Master; What It Means to Be a Master; Who Should Read This Book; How to Read This Book; What Should You Know Already?; What I Cover; What I Don't Cover; Chapter 2. Advanced Regular Expressions; References to Regular Expressions; (?imsx-imsx:PATTERN); References As Arguments; Noncapturing Grouping, (?:PATTERN); Readable Regexes, /x and (?#...); Global Matching; Global Match Anchors
  • LookaroundsLookahead Assertions, (?=PATTERN) and (?!PATTERN); Positive lookahead assertions; Negative lookahead assertions; Lookbehind Assertions, (?<!PATTERN) and (?<=PATTERN); Deciphering Regular Expressions; Final Thoughts; Summary; Further Reading; Chapter 3. Secure Programming Techniques; Bad Data Can Ruin Your Day; Taint Checking; Warnings Instead of Fatal Errors; Automatic Taint Mode; mod_perl; Tainted Data; Side Effects of Taint Checking; Untainting Data; IO::Handle::untaint; Hash Keys; Choosing Untainted Data with Tainted Data; List Forms of system and exec; Three-Argument open
  • sysopenLimit Special Privileges; Summary; Further Reading; Chapter 4. Debugging Perl; Before You Waste Too Much Time; The Best Debugger in the World; Doing Whatever I Want; Program Tracing; Safely Changing Modules; Wrapping Subroutines; perl5db.pl; Alternative Debuggers; Using a Different Debugger with -D; Devel::ptkdb; Devel::ebug; Other Debuggers; EPIC; Komodo; Affrus; Summary; Further Reading; Chapter 5. Profiling Perl; Finding the Culprit; The General Approach; Profiling DBI; Other DBI::Profile Reports; Making It Even Easier; Switching Databases; Devel::DProf; Writing My Own Profiler
  • Devel::LineCounterProfiling Test Suites; Devel::Cover; Summary; Further Reading; Chapter 6. Benchmarking Perl; Benchmarking Theory; Benchmarking Time; Comparing Code; Don't Turn Off Your Thinking Cap; Memory Use; The perlbench Tool; Summary; Further Reading; Chapter 7. Cleaning Up Perl; Good Style; perltidy; De-Obfuscation; De-Encoding Hidden Source; Unparsing Code with B::Deparse; Perl::Critic; Creating My Own Perl::Critic Policy; Summary; Further Reading; Chapter 8. Symbol Tables and Typeglobs; Package and Lexical Variables; Getting the Package Version; The Symbol Table; Typeglobs; Aliasing
  • Filehandle Arguments in Older CodeNaming Anonymous Subroutines; Summary; Further Reading; Chapter 9. Dynamic Subroutines; Subroutines As Data; Creating and Replacing Named Subroutines; Symbolic References; Iterating Through Subroutine Lists; Processing Pipelines; Method Lists; Subroutines As Arguments; Autoloaded Methods; Hashes As Objects; AutoSplit; Summary; Further Reading; Chapter 10. Modifying and Jury-Rigging Modules; Choosing the Right Solution; Sending Patches to the Author; Local Patches; Taking over a Module; Forking; Start Over on My Own; Replacing Module Parts; Subclassing
  • An ExtUtils::MakeMaker Example