Avoid a slice when you want an element. Understand context and how it affects operations. Use arrays or hashes to group data. Handle big numbers with bignum. Know common shorthand and syntax quirks. Avoid excessive punctuation. Format lists for easy maintenance. Use foreach, map, and grep as appropriate.
Know the different ways to quote strings. Learn the myriad ways of sorting. Make work easier with smart matching. Use given-when to make a switch statement. Use autodie to simplify error handling. Know the precedence of regular expression operators. Use regular expression captures. Use more precise whitespace character classes. Use named captures to label matches. Use noncapturing parentheses when you need only grouping. Watch out for the match variables.
Avoid greed when parsimony is best. Use zero-width assertions to match positions in a string. Avoid using regular expressions for simple string operations. Make regular expressions readable. Avoid unnecessary backtracking. Compile regexes only once. Pre-compile regular expressions. Benchmark your regular expressions.
Understand the difference between my and local. Use wantarray to write subroutines returning lists. Pass references instead of copies. Use hashes to pass named parameters. Use prototypes to get special argument parsing. Create closures to lock in data. Create new subroutines with subroutines. Always use the three-argument open. Consider different ways of reading from a stream. Open filehandles to and from strings.
Make flexible output. Use File::Spec or Path::Class to work with paths. Leave most of the data on disk to save memory. Understand references and reference syntax. Compare reference types to prototypes. Create arrays of arrays with references. Build C-style structs with anonymous hashes. Be careful with circular data structures. Use map and grep to manipulate complex data structures. Install CPAN modules without admin privileges. Table of contents Product information.
Advanced Techniques 1. Introspection 1. Preparatory Work: Fun with Globs 1. Aliasing 1. Accessing parts of a glob 1. Creating subroutines with glob assignment 1. Case Study: Hook::LexWrap 1. Introspection with B 1. Messing with the Class Model 1. Dynamic Method Resolution 1. Case Study: Singleton Methods 1. Unexpected Code 1. Overloading 1. Simple operator overloading 1.
Other operator overloading 1. Non-operator overloading 1. Time Shifting 1. Case study: Acme::Dot 1. Conclusion 2. Parsing Techniques 2. Parse::RecDescent Grammars 2. Simple Parsing with Parse::RecDescent 2. Types of match 2. Actions 2. Debugging 2. More Difficult Parsing 2. Commit, reject, and error 2. Syntactic whitespace 2. Automating the process 2.
And much more Some Examples 2. Parsing iCalendar data 2. Parse::Yapp 2. Other Parsing Techniques 2. HTML::Parser 2. XML Parsing 2. And Everything Else Conclusion 3. Templating Tools 3. Formats and Text::Autoformat 3. Text::Autoformat 3. Text::Template 3. Loops, Arrays, and Hashes 3. Security and Error Checking 3. Text::Template Tricks 3. HTML::Template 3. Variables and Conditions 3. Loops 3. RSS Aggregation 3. HTML::Mason 3.
Basic Components 3. Basic Dynamism 3. Perl Blocks 3. Our RSS Aggregator 3. Template Toolkit 3. Filters 3. Plugins 3. Components and Macros 3. The RSS Aggregator 3. AxKit 3. Conclusion 4. Objects, Databases, and Applications 4. Beyond Flat Files 4. Object Serialization 4. Effective Java Programming Language Guide. This highly anticipated new edition of the classic, Jolt Award-winning work has been thoroughly updated to cover Java SE 5 and Java SE 6 features introduced since the first edition.
Bloch explores new design patterns and language idioms, showing you how to make the most of features ranging from generics to enums, annotations to autoboxing. Each chapter in the book consists of several items presented in the form of a short, standalone essay that provides specific advice, insight into Java platform subtleties, and outstanding code examples.
The comprehensive descriptions and explanations for each item illuminate what to do, what not to do, and why Effective awk Programming. Effective awk Programming,3rd Edition, focuses entirely on awk, exploring it in the greatest depth of the three awk titles we carry. It's an excellent companion piece to the more broadly focused second edition. This book provides complete coverage of the gawk 3.
0コメント