Description
Perl Hacks taps into the collective wisdom of the world's most creative Perl gurus, so you can learn from their experiences. It's the perfect book for experienced developers looking for time-saving practical tips or dabblers who are simply curious about Perl's many
cool capabilities. Topics include user interaction, data munging, working with modules, object hacks, and debugging.
Full Description
Table of Contents
-
Chapter 1 Productivity Hacks
-
Add CPAN Shortcuts to Firefox
-
Put Perldoc to Work
-
Browse Perl Docs Online
-
Make the Most of Shell Aliases
-
Autocomplete Perl Identifiers in Vim
-
Use the Best Emacs Mode for Perl
-
Enforce Local Style
-
Don't Save Bad Perl
-
Automate Checkin Code Reviews
-
Run Tests from Within Vim
-
Run Perl from Emacs
-
-
Chapter 2 User Interaction
-
Use $EDITOR As Your UI
-
Interact Correctly on the Command Line
-
Simplify Your Terminal Interactions
-
Alert Your Mac
-
Interactive Graphical Apps
-
Collect Configuration Information
-
Rewrite the Web
-
-
Chapter 3 Data Munging
-
Treat a File As an Array
-
Read Files Backwards
-
Use Any Spreadsheet As a Data Source
-
Factor Out Database Code
-
Build a SQL Library
-
Query Databases Dynamically Without SQL
-
Bind Database Columns
-
Iterate and Generate Expensive Data
-
Pull Multiple Values from an Iterator
-
-
Chapter 4 Working with Modules
-
Shorten Long Class Names
-
Manage Module Paths
-
Reload Modified Modules
-
Create Personal Module Bundles
-
Manage Module Installations
-
Presolve Module Paths
-
Create a Standard Module Toolkit
-
Write Demos from Tutorials
-
Replace Bad Code from the Outside
-
Drink to the CPAN
-
Improve Exceptional Conditions
-
Search CPAN Modules Locally
-
Package Standalone Perl Applications
-
Create Your Own Lexical Warnings
-
Find and Report Module Bugs
-
-
Chapter 5 Object Hacks
-
Turn Your Objects Inside Out
-
Serialize Objects (Mostly) for Free
-
Add Information with Attributes
-
Make Methods Really Private
-
Autodeclare Method Arguments
-
Control Access to Remote Objects
-
Make Your Objects Truly Polymorphic
-
Autogenerate Your Accessors
-
-
Chapter 6 Debugging
-
Find Compilation Errors Fast
-
Make Invisible Characters Apparent
-
Debug with Test Cases
-
Debug with Comments
-
Show Source Code on Errors
-
Deparse Anonymous Functions
-
Name Your Anonymous Subroutines
-
Find a Subroutine's Source
-
Customize the Debugger
-
-
Chapter 7 Developer Tricks
-
Rebuild Your Distributions
-
Test with Specifications
-
Segregate Developer and User Tests
-
Run Tests Automatically
-
See Test Failure Diagnostics — in Color!
-
Test Live Code
-
Cheat on Benchmarks
-
Build Your Own Perl
-
Run Test Suites Persistently
-
Simulate Hostile Environments in Your Tests
-
-
Chapter 8 Know Thy Code
-
Understand What Happens When
-
Inspect Your Data Structures
-
Find Functions Safely
-
Know What's Core and When
-
Trace All Used Modules
-
Find All Symbols in a Package
-
Peek Inside Closures
-
Find All Global Variables
-
Introspect Your Subroutines
-
Find Imported Functions
-
Profile Your Program Size
-
Reuse Perl Processes
-
Trace Your Ops
-
Write Your Own Warnings
-
-
Chapter 9 Expand Your Perl Foo
-
Double Your Data with Dualvars
-
Replace Soft References with Real Ones
-
Optimize Away the Annoying Stuff
-
Lock Down Your Hashes
-
Clean Up at the End of a Scope
-
Invoke Functions in Odd Ways
-
Glob Those Sequences
-
Write Less Error-Checking Code
-
Return Smarter Values
-
Return Active Values
-
Add Your Own Perl Syntax
-
Modify Semantics with a Source Filter
-
Use Shared Libraries Without XS
-
Run Two Services on a Single TCP Port
-
Improve Your Dispatch Tables
-
Track Your Approximations
-
Overload Your Operators
-
Learn from Obfuscations
-
-
Colophon
Product Details
- Title:
- Perl Hacks
- By:
- Chromatic, Damian Conway, Curtis (Ovid) Poe
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- May 2006
- Ebook Release:
- February 2009
- Pages:
- 304
- Print ISBN:
- 978-0-596-52674-0
- | ISBN 10:
- 0-596-52674-1
- Ebook ISBN:
- 978-0-596-10604-1
- | ISBN 10:
- 0-596-10604-1
Customer Reviews
