Skip to content

Advanced Perl Programming

ISBN-10: 1565922204

ISBN-13: 9781565922204

Edition: 1997

Authors: Sriram Srinivasan, Andy Oram

List price: $34.95
Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!


So you've learned Perl, but you're getting frustrated. Perhaps you've taken on a larger project than the ones you're used to. Or you want to add a user interface or a networking component. Or you need to do more complicated error trapping. Whether your knowledge of Perl is casual or deep, this book will make you a more accomplished programmer. Here you can learn the complex techniques for production-ready Perl programs. This book explains methods for manipulating data and objects that may have looked like magic before. Furthermore, it sets Perl in the context of a larger environment, giving you the background you need for dealing with networks, databases, and GUIs. The discussion of internals helps you program more efficiently and embed Perl within C or C within Perl. Major topics covered include: Practical use of packages and classes (object-oriented programming) Complex data structures Persistence (e.g., using a database) Networking Graphical interfaces, using the Tk toolkit Interaction with C language functions Embedding and extending the Perl interpreter In addition, the book patiently explains all sorts of language details you've always wanted to know more about, such as the use of references, trapping errors through the eval operator, non-blocking I/O, when closures are helpful, and using ties to trigger actions when data is accessed. You will emerge from this book a better hacker, and a proud master of Perl.
Customers also bought

Book details

List price: $34.95
Copyright year: 1997
Publisher: O'Reilly Media, Incorporated
Publication date: 8/11/1997
Binding: Paperback
Pages: 432
Size: 7.00" wide x 9.25" long x 1.00" tall
Weight: 1.386

Sriram Srinivasan ("Ram") is an expert on distributed object technologies, and develops Java middleware at WebLogic, San Francisco, for fun and profit. He actively pursues his interests in programming languages, databases, transaction processing, networking, and meaningful user interfaces. Sriram has been an enthusiastic user and teacher of Perl for the last six years, and currently teaches a course on advanced Perl programming for the extension program at the University of California at Berkeley. In his spare time, he dabbles in Indian classical music, charcoal drawing, cooking, and biking, and dreams of the day when he can say, "In his spare time, he dabbles in programming languages, ...".

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
Implementing Complex Data Structures
User-Defined Structures
Example: Matrices
Professors, Students, Courses
Pass the Envelope
Typeglobs and Symbol Tables
Perl Variables, Symbol Table, and Scoping
TypeglobsTypeglobs and References
Filehandles, Directory Handles, and Formats
Subroutine References and Closures
Subroutine References
Using Subroutine References
ClosuresUsing Closures
Comparisons to Other Languages
EvalThe String Form: Expression Evaluation
The Block Form: Exception Handling
Watch Your QuotesUsing Eval for Expression Evaluation
Using Eval for Efficiency
Using Eval for Time-Outs
Eval in Other Languages
ModulesBasic Package
Packages and Files
Package Initialization and Destruction
PrivacyImporting Symbols
Nesting Packages
AutoloadingAccessing the Symbol Table
Language Comparisons
Object-Oriented ProgrammingOO: An Introduction
Objects in Perl
Recap of Conventions
Comparison with Other OO Languages
Object Orientation: The Next Few Steps
Efficient Attribute Storage
DelegationOn Inheritance
TieTying ScalarsTying Arrays
Tying Hashes
Tying Filehandles
Example: Monitoring Variables
Comparisons with Other Languages
PersistencePersistence Issues
Streamed Data
Record-Oriented Approach
Relational Databases
Implementing Object Persistence
Adaptor: An Introduction
Design Notes
Networking with Sockets
Networking PrimerSocket API and IO: Socket
Handling Multiple Clients
Real-World Servers
IO Objects and Filehandles
Prebuilt Client Modules
Networking: Implementing RPCMsg: Messaging Toolkit
Remote Procedure Calls (RPC)Resources
User Interfaces with Tk
Introduction to GUIs, Tk, and Perl/Tk
Starting with Perl/TkWidget Tour
Geometry Management
TimersEvent Bindings
Event Loops
GUI Example: Tetris
Introduction to Tetris
GUI Example: Man Page Viewerman and perlman
Template-Driven Code GenerationOn Code Generation
Jeeves Example
Jeeves Overview
Jeeves Implementation
Sample Specification Parser
Extending Perl: A First Course
Writing an Extension: Overview
Example: Fractals with PerlSWIG Features
XS Features
Degrees of FreedomA Detour into Fractals
Embedding Perl: The Easy Way
Why Embed?Embedding Overview
Adding Extensions
Perl Internals
Reading the Source
ArchitecturePerl Value Types
Stacks and Messaging Protocol
Meaty Extensions
Easy Embedding APIA Peek into the Future Resources
Tk Widget Reference
Syntax Summary