My Account
View Cart
Home
Community
Books & Videos
Safari Books Online
Conferences
Training
School of Technology
About
Complete List
Bestsellers
New Releases
Rough Cuts
Upcoming Titles
Ebooks
By Publisher
By Series
Out of Print
Order Info
Search
Search Tips
Tell a friend
Perl Hacks
Tips & Tools for Programming, Debugging, and Surviving
By
chromatic
,
Damian Conway
,
Curtis Poe
May 2006
Pages: 296
|
Table of Contents
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
Return to
Perl Hacks