Perl Hacks (Hacks Series)

Overview

With more than a million dedicated programmers, Perl has proven to be the best computing language for the latest trends in computing and business. While other languages have stagnated, Perl remains fresh, thanks to its community-based development model, which encourages the sharing of information among users. This tradition of knowledge-sharing allows developers to find answers to almost any Perl question they can dream up.

And you can find many of those answers right here in ...

See more details below
Paperback
$21.48
BN.com price
(Save 28%)$29.99 List Price
Other sellers (Paperback)
  • All (16) from $1.99   
  • New (5) from $16.35   
  • Used (11) from $1.99   
Perl Hacks: Tips & Tools for Programming, Debugging, and Surviving

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$13.49
BN.com price
(Save 43%)$23.99 List Price

Overview

With more than a million dedicated programmers, Perl has proven to be the best computing language for the latest trends in computing and business. While other languages have stagnated, Perl remains fresh, thanks to its community-based development model, which encourages the sharing of information among users. This tradition of knowledge-sharing allows developers to find answers to almost any Perl question they can dream up.

And you can find many of those answers right here in Perl Hacks. Like all books in O'Reilly's Hacks Series, Perl Hacks appeals to a variety of programmers, whether you're an experienced developer or a dabbler who simply enjoys exploring technology. Each hack is a short lesson—some are practical exercises that teach you essential skills, while others merely illustrate some of the fun things that Perl can do. Most hacks have two parts: a direct answer to the immediate problem you need to solve right now and a deeper, subtler technique that you can adapt to other situations. Learn how to add CPAN shortcuts to the Firefox web browser, read files backwards, write graphical games in Perl, and much more.

For your convenience, Perl Hacks is divided by topic—not according toany sense of relative difficulty—so you can skip around and stop at any hack you like. Chapters include:

  • Productivity Hacks
  • User Interaction
  • Data Munging
  • Working with Modules
  • Object Hacks
  • Debugging

Whether you're a newcomer or an expert, you'll find great value in Perl Hacks, the only Perl guide that offers somethinguseful and fun for everyone.

Like all of the books in O'Reilly's "Hacks" series, this text contains short lessons and practical, task-based exercises that teach essential skills for Perl, the ultimate versatile scripting language.

Read More Show Less

Product Details

  • ISBN-13: 9780596526740
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 5/1/2006
  • Series: Hacks Series
  • Edition number: 1
  • Pages: 298
  • Product dimensions: 6.06 (w) x 9.00 (h) x 0.73 (d)

Meet the Author

chromatic manages Onyx Neon Press, an independent publisher. His areas of expertise include agile software development, language design, and virtual machines for dynamic languages. He is also a published novelist. His books include The Art of Agile Development and Masterminds of Programming.

Dr. Damian Conway is a Senior Lecturer in Computer Science and Software Engineering at Monash University (Melbourne, Australia), where he teaches object-oriented software engineering. He is an effective teacher, an accomplished writer, and the author of several popular Perl modules. He is also a semi-regular contributor to the Perl Journal. In 1998 he was the winner of the Larry Wall Award for Practical Utility for two modules (Getopt::Declare and Lingua::EN::Inflect) and in 1999 he won his second "Larry" for his Coy.pm haiku-generation module.

Curtis (Ovid) Poe is a CPAN author, a TPF Steering Committee Member, and the TPF Grant Committee Secretary. He likes long walks on the beach and single malt scotch, but hates writing bios. Ovid writes for Perl.com too.

Curtis (Ovid) Poe is a CPAN author, a TPF Steering Committee Member, and the TPF Grant Committee Secretary. He likes long walks on the beach and single malt scotch, but hates writing bios. Ovid writes for Perl.com too.

Read More Show Less

Table of Contents

Credits;
About the Authors;
About the Contributors;
Acknowledgments;
Preface;
Why Perl Hacks?;
How To Use This Book;
How This Book Is Organized;
Conventions Used in This Book;
Using Code Examples;
Safari Enabled;
We'd Like to Hear from You;
Chapter 1: Productivity Hacks;
1 Add CPAN Shortcuts to Firefox;
2 Put Perldoc to Work;
3 Browse Perl Docs Online;
4 Make the Most of Shell Aliases;
5 Autocomplete Perl Identifiers in Vim;
6 Use the Best Emacs Mode for Perl;
7 Enforce Local Style;
8 Don't Save Bad Perl;
9 Automate Checkin Code Reviews;
10 Run Tests from Within Vim;
11 Run Perl from Emacs;
Chapter 2: User Interaction;
12 Use $EDITOR As Your UI;
13 Interact Correctly on the Command Line;
14 Simplify Your Terminal Interactions;
15 Alert Your Mac;
16 Interactive Graphical Apps;
17 Collect Configuration Information;
18 Rewrite the Web;
Chapter 3: Data Munging;
19 Treat a File As an Array;
20 Read Files Backwards;
21 Use Any Spreadsheet As a Data Source;
22 Factor Out Database Code;
23 Build a SQL Library;
24 Query Databases Dynamically Without SQL;
25 Bind Database Columns;
26 Iterate and Generate Expensive Data;
27 Pull Multiple Values from an Iterator;
Chapter 4: Working with Modules;
28 Shorten Long Class Names;
29 Manage Module Paths;
30 Reload Modified Modules;
31 Create Personal Module Bundles;
32 Manage Module Installations;
33 Presolve Module Paths;
34 Create a Standard Module Toolkit;
35 Write Demos from Tutorials;
36 Replace Bad Code from the Outside;
37 Drink to the CPAN;
38 Improve Exceptional Conditions;
39 Search CPAN Modules Locally;
40 Package Standalone Perl Applications;
41 Create Your Own Lexical Warnings;
42 Find and Report Module Bugs;
Chapter 5: Object Hacks;
43 Turn Your Objects Inside Out;
44 Serialize Objects (Mostly) for Free;
45 Add Information with Attributes;
46 Make Methods Really Private;
47 Autodeclare Method Arguments;
48 Control Access to Remote Objects;
49 Make Your Objects Truly Polymorphic;
50 Autogenerate Your Accessors;
Chapter 6: Debugging;
51 Find Compilation Errors Fast;
52 Make Invisible Characters Apparent;
53 Debug with Test Cases;
54 Debug with Comments;
55 Show Source Code on Errors;
56 Deparse Anonymous Functions;
57 Name Your Anonymous Subroutines;
58 Find a Subroutine's Source;
59 Customize the Debugger;
Chapter 7: Developer Tricks;
60 Rebuild Your Distributions;
61 Test with Specifications;
62 Segregate Developer and User Tests;
63 Run Tests Automatically;
64 See Test Failure Diagnostics — in Color!;
65 Test Live Code;
66 Cheat on Benchmarks;
67 Build Your Own Perl;
68 Run Test Suites Persistently;
69 Simulate Hostile Environments in Your Tests;
Chapter 8: Know Thy Code;
70 Understand What Happens When;
71 Inspect Your Data Structures;
72 Find Functions Safely;
73 Know What's Core and When;
74 Trace All Used Modules;
75 Find All Symbols in a Package;
76 Peek Inside Closures;
77 Find All Global Variables;
78 Introspect Your Subroutines;
79 Find Imported Functions;
80 Profile Your Program Size;
81 Reuse Perl Processes;
82 Trace Your Ops;
83 Write Your Own Warnings;
Chapter 9: Expand Your Perl Foo;
84 Double Your Data with Dualvars;
85 Replace Soft References with Real Ones;
86 Optimize Away the Annoying Stuff;
87 Lock Down Your Hashes;
88 Clean Up at the End of a Scope;
89 Invoke Functions in Odd Ways;
90 Glob Those Sequences;
91 Write Less Error-Checking Code;
92 Return Smarter Values;
93 Return Active Values;
94 Add Your Own Perl Syntax;
95 Modify Semantics with a Source Filter;
96 Use Shared Libraries Without XS;
97 Run Two Services on a Single TCP Port;
98 Improve Your Dispatch Tables;
99 Track Your Approximations;
100 Overload Your Operators;
101 Learn from Obfuscations;
Colophon;

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)