Please consider the latest edition.
This book covers complex techniques for managing production-ready Perl programs and explains methods for manipulating data and objects that may have looked like magic before. It gives you necessary background for dealing with networks, databases, and GUIs, and includes a discussion of internals to help you program more efficiently and embed Perl within C or C within Perl.
-
Chapter 1 Data References and Anonymous Storage
-
Referring to Existing Variables
-
Using References
-
Nested Data Structures
-
Querying a Reference
-
Symbolic References
-
A View of the Internals
-
References in Other Languages
-
Resources
-
-
Chapter 2 Implementing Complex Data Structures
-
User-Defined Structures
-
Example: Matrices
-
Professors, Students, Courses
-
Pass the Envelope
-
Pretty-Printing
-
Resources
-
-
Chapter 3 Typeglobs and Symbol Tables
-
Perl Variables, Symbol Table, and Scoping
-
Typeglobs
-
Typeglobs and References
-
Filehandles, Directory Handles, and Formats
-
-
Chapter 4 Subroutine References and Closures
-
Subroutine References
-
Using Subroutine References
-
Closures
-
Using Closures
-
Comparisons to Other Languages
-
Resources
-
-
Chapter 5 Eval
-
The String Form: Expression Evaluation
-
The Block Form: Exception Handling
-
Watch Your Quotes
-
Using Eval for Expression Evaluation
-
Using Eval for Efficiency
-
Using Eval for Time-Outs
-
Eval in Other Languages
-
Resources
-
-
Chapter 6 Modules
-
Basic Package
-
Packages and Files
-
Package Initialization and Destruction
-
Privacy
-
Importing Symbols
-
Nesting Packages
-
Autoloading
-
Accessing the Symbol Table
-
Language Comparisons
-
-
Chapter 7 Object-Oriented Programming
-
OO: An Introduction
-
Objects in Perl
-
UNIVERSAL
-
Recap of Conventions
-
Comparison with Other OO Languages
-
Resources
-
-
Chapter 8 Object Orientation: The Next Few Steps
-
Efficient Attribute Storage
-
Delegation
-
On Inheritance
-
Resources
-
-
Chapter 9 Tie
-
Tying Scalars
-
Tying Arrays
-
Tying Hashes
-
Tying Filehandles
-
Example: Monitoring Variables
-
Comparisons with Other Languages
-
-
Chapter 10 Persistence
-
Persistence Issues
-
Streamed Data
-
Record-Oriented Approach
-
Relational Databases
-
Resources
-
-
Chapter 11 Implementing Object Persistence
-
Adaptor: An Introduction
-
Design Notes
-
Implementation
-
Resources
-
-
Chapter 12 Networking with Sockets
-
Networking Primer
-
Socket API and IO::Socket
-
Handling Multiple Clients
-
Real-World Servers
-
IO Objects and Filehandles
-
Prebuilt Client Modules
-
Resources
-
-
Chapter 13 Networking: Implementing RPC
-
Msg: Messaging Toolkit
-
Remote Procedure Calls (RPC)
-
Resources
-
-
Chapter 14 User Interfaces with Tk
-
Introduction to GUIs, Tk, and Perl/Tk
-
Starting with Perl/Tk
-
Widget Tour
-
Geometry Management
-
Timers
-
Event Bindings
-
Event Loops
-
Resources
-
-
Chapter 15 GUI Example: Tetris
-
Introduction to Tetris
-
Design
-
Implementation
-
-
Chapter 16 GUI Example: Man Page Viewer
-
man and perlman
-
Implementation
-
Resources
-
-
Chapter 17 Template-DrivenCode Generation
-
On Code Generation
-
Jeeves Example
-
Jeeves Overview
-
Jeeves Implementation
-
Sample Specification Parser
-
Resources
-
-
Chapter 18 Extending Perl: A First Course
-
Writing an Extension: Overview
-
Example: Fractals with Perl
-
SWIG Features
-
XS Features
-
Degrees of Freedom
-
A Detour into Fractals
-
Resources
-
-
Chapter 19 Embedding Perl:The Easy Way
-
Why Embed?
-
Embedding Overview
-
Examples
-
Adding Extensions
-
Resources
-
-
Chapter 20 Perl Internals
-
Reading the Source
-
Architecture
-
Perl Value Types
-
Stacks and Messaging Protocol
-
Meaty Extensions
-
Easy Embedding API
-
A Peek into the Future
-
Resources
-
-
Appendix Tk Widget Reference
-
Button
-
Canvas
-
Entry
-
Listbox
-
Menus
-
Scrollbars and Scrolling
-
Scale
-
HList — Hierarchical List
-
-
Appendix Syntax Summary
-
References
-
Nested Data Structures
-
Closures
-
Modules
-
Objects
-
Dynamic Behavior
-
Exception Handling
-
Meta-Information
-
Typeglobs
-
Filehandles, Formats
-
-
Colophon
- Title:
- Advanced Perl Programming
- By:
- Sriram Srinivasan
- Publisher:
- O'Reilly Media
- Formats:
-
- Safari Books Online
- Print Release:
- August 1997
- Pages:
- 432
- Print ISBN:
- 978-1-56592-220-4
- | ISBN 10:
- 1-56592-220-4
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal featured on the cover of Advanced Perl Programming is a black leopard. Most leopards are easily recognized by the rosette patterned spots on their coat. Black leopards, often called "black panthers," also have these spots, but they are difficult to see because of the darkness of the fur. Black leopards are born into the same litters as the more common yellowish leopards. They occur most frequently in the wet, forested areas of India and southeast Asia, where the dark color aids in camouflage and hunting.
Leopards are among the most widely distributed wild cats. Their range extends throughout most of Africa and India and into much of Asia, the Middle East, and the East Indies. Highly adaptable, leopards are able to hunt almost any animal, and can live in both very wet and arid conditions. Because they almost always share their range with bigger cats, such as lions or tigers, leopards are very cautious. After catching its prey, the leopard will carry it high up into a tree to devour it. The incredible strength of the leopard enables it to climb while carrying animals up to three times its own body weight. Edie Freedman designed the cover of this book, using a 19th-century engraving from the Dover Pictorial Archive. The cover layout was produced with Quark XPress 3.3 using the ITC Garamond font. Whenever possible, our books use RepKover, a durable and flexible lay-flat binding. If the page count exceeds RepKover's limit, perfect binding is used.
The inside layout was designed by Nancy Priest and implemented in FrameMaker 5.0 by Mike Sierra. The text and heading fonts are ITC Garamond Light and Garamond Book. The illustrations that appear in the book were created in Macromedia Freehand 5.0 by Robert Romano. This colophon was written by Clairemarie Fisher O'Leary.
