Supercharged Perl programming for every developer, sysadmin, and Web professional. *In-depth coverage of references-the cornerstone of advanced Perl programming *Complete application examples, not just code snippets *CGI, networking, GUIs, and object development *Enterprise database integration applicable to all databases including Oracle and Sybase Modern Perl Programming will help you master Perl's most robust, powerful features-so you can make the most of the language whether you're a beginner or an experienced scripter. Michael Saltzman starts with a rapid-fire Perl tutorial and refresher. Then, using actual applications-not just code snippets-he presents expert guidance on the Perl features that deliver the most power, productivity, and efficiency.Coverage includes: *Practical coverage of data types, I/O, control structures, and operators *Making the most of associative arrays, hash tables, and regular expressions *Building your own subroutines *Developing Web-based CGI and network applications *Example-rich coverage of references (pointers)-the cornerstone of advanced Perl development *Object-oriented programming, data structures, and advanced GUI development *Integrating with enterprise-class databases: detailed examples applicable to Oracle and Sybase and other databases *Debugging Perl applications Includes extensive downloadable library of code samples!
You won't just get results fast: You'll get great results fast-robust, maintainable, industrial-strength Perl for even the most challenging environments.
Sprache
Verlagsort
Verlagsgruppe
Zielgruppe
Für höhere Schule und Studium
Maße
Höhe: 100 mm
Breite: 100 mm
Dicke: 100 mm
Gewicht
ISBN-13
978-0-13-008965-6 (9780130089656)
Schweitzer Klassifikation
MICHAEL SALTZMAN is the founder of /training/etc Inc. He has developed extensive course materials, including courses in Perl, C/C++/STL, and Java and has led a wide variety of technical seminars on programming languages and UNIX. Before pursuing a career as a technical lecturer and writer, he was employed for 23 years by the National Security Agency, where he taught a wide range of programming and UNIX system administration courses. He holds MS degrees in Computer Science from the American University and Johns Hopkins University.
What Is Perl?
Why program in Perl?
Why did I write this book?
Who should read this book?
Overview of the Book.
Chapter Summaries
1. A Tutorial Introduction to Perl.
Getting Started. Perl Variables. Control Flow Constructs. Altering Loop Control Flow. A Few Special Perl Variables. Regular Expressions. Writing Your Own Functions. Exercises.
2. Input and Output in Perl.
Filehandles. Creating Your Own Filehandles. File Operators. The stat Function. Other Filehandles. Exercises.
3. Operators in Perl.
Perl Operators. Exercises.
4. Arrays and Array Functions.
Introduction. The @ARGV Array. Array Functions. Exercises.
5. Hashes.
Introduction. Sorting Hashes. Hash Solutions to Common Problems. Built-in Associative Arrays. Reading from a File into a Hash. Exercises.
6. Regular Expressions.
Introduction. The Match Operator. Regular Expression Metacharacters. Anchoring Patterns. Remembering Parts of Matches. Greedy Regular Expressions. Substitutions. Backtracking. The tr Operator. Exercises.
7. Subprograms.
Introduction. Passing Arguments to Subroutines. Returning Values from Subroutines. Perl Libraries. The Perl Standard Library. Packages. Predefined Subroutines. Exercises.
8. Generating Reports in Perl.
Introduction. Format. Top-of-page formatting. The select Function. Bottom-of-Page Formatting. Exercises.
9. Accessing System Resources.
Introduction. File and Directory System Calls. Process Creation. Updating Files. Exercises.
10. Perl References.
Introduction. Anonymous References. Complex Data Structures. Collections of Records. Exercises.
11. Object-Oriented Programming.
Introduction. The Vocabulary of Object Orientation. Defining and Using Objects. Inheritance. Exercises.
12. Client/Server Applications.
Introduction. Writing Clients. Writing Servers. Iterative Servers. Exercises.
13. CGI Programming with Perl.
Introduction. HTML and Forms. Relationship between Server and CGI Script. cgi-lib.pl and cgi.pm. CGI Scripts and Databases. Exercises.
14. Graphical User Interfaces with the Tk.pm Module.
Introduction. Geometry Management. Buttons. Other Widgets. Frames. Binding. Exercise.
15. Accessing Real Databases in Perl.
Introduction. A Review of SQL and Relational Databases. Accessing a Database from Perl. Adding a Graphical Front-End. Accessing a Real Database via a Web Form.
16. Debugging Perl Scripts.
Introduction. Using the print Function. Command-Line Options. Executing Portions of Your Code. Quoting. Useful Perl Modules. The Perl Debugger. Useful Perl Functions.
Index.