
Core Perl
Reuven M. Lerner(Author)
Prentice Hall (Publisher)
Published on 7. January 2002
Book
Paperback/Softback
592 pages
978-0-13-035181-4 (ISBN)
Description
Using the proven Core Series format, this comprehensive introduction and reference gives experienced developers all the techniques and real-world code they need to master Perl -- fast! Start by examining Perl syntax from the perspective of an experienced programmer; learn Perl data types, built-in functions, modules, and object-oriented features. Discover how Perl communicates with the outside world; create network clients and servers; manipulate text and DBM files; and use Perl's portable database interface, DBI. Understand key issues of program maintenance and security in Perl environments; then learn how to use Perl as "the duct tape of the Web" -- via CGI scripting, Web clients, Apache mod_perl module programming, templates, and other techniques. For all sysadmins and Web developers who want to use Perl effectively, and already have a background in programming.
More details
Language
English
Place of publication
Upper Saddle River
United States
Publishing group
Pearson Education (US)
Target group
College/higher education
Dimensions
Height: 233 mm
Width: 177 mm
Thickness: 37 mm
Weight
1089 gr
ISBN-13
978-0-13-035181-4 (9780130351814)
Copyright in bibliographic data and cover images is held by Nielsen Book Services Limited or by the publishers or by their respective licensors: all rights reserved.
Schweitzer Classification
Other editions
Previous edition
Person
REUVEN M. LERNER has been a Web/database consultant since 1995, specializing in open-source software such as Perl and Linux. He lives with his wife and daughter in Modi'in, Israel.
Content
(NOTE: Each chapter concludes with a Conclusion.)
Preface.
1. What is Perl?
What is Perl? When not to use Perl. The Perl license. Perl versions and standardization. Perl support. Retrieving and installing Perl. Retrieving modules from CPAN.
2. Getting Started.
Basic programs. Compiler or interpreter? Statements and blocks. Variables. Scalars. Lists and arrays. Hashes. References. Lexicals and globals.
3. Extending Your Perl Vocabulary.
Basic output. Time. Basic input. Conditional execution. Comparison operators. Logical operators. Order of operations. Loops. Sorting. Files. Built-in variables. Data manipulation functions. Running external programs. fork. eval.
4. Subroutines.
Subroutine basics. Return values. Variables within subroutines. Subroutine arguments. Subroutine references. BEGI and END. Signals.
5. Text Patterns.
What are text patterns? Metacharacters. Anchoring searches. Character classes. Predefined character classes. Parentheses. Grabbing parts of a string. Substitution. Greediness. Options for matching and replacing. study. Regexp objects. tr///. Substituting across multiple files. grep.
6. Modules.
Packages. Modules. Exporting symbols. Some example modules. Documenting modules with POD.
7. Objects.
Objects. Methods. Inheritance. Creating and working with objects.
8. Tying.
Tying. Tying a scalar. Tying a hash. Tying an array.
9. Working with Files.
Basic file access. Random file access. Filehandles. Globbing. Real and effective IDs. File permissions. suid and sgid. Unary file tests. stat. Locking. Directories. Renaming and deleting. Links.
10. Networking and Interprocess Communications.
Pipes. Network communication. Working with Internet protocols.
11. Relational Databases.
What is a relational database? Introducing SQL. SELECT. Joins. Updating and deleting. Indexes. Perl and databases. Simple DBI programs.
12. Building Database Applications.
Database design. Writing the applications. Debugging DBI.
13. Maintenance and Security.
Identifying problems. When things go wrong. Tainting. Debugging. Benchmarking.
14. CGI Programming.
Dynamic Web content. CGI. Error messages and debugging. Redirection. More CGI methods.
15. Advanced CGI Programming.
User registration. Cookies. Graphic output. Templates.
16. Web/Database Applications.
Stock updates. Postcards. Personalization with databases.
17. mod perl.
Installing and configuring mod perl. Configuration directives. Three simple handlers. Apache: Registry. Useful modules.
18. Mason.
Mason. autohandler and dhandler. autohandler. Session management. Conclusion.
A. Bibliography and Recommended Reading.
Perl books. Periodicals. World Wide Web. Databases. Useful Web sites.
Index.
Preface.
1. What is Perl?
What is Perl? When not to use Perl. The Perl license. Perl versions and standardization. Perl support. Retrieving and installing Perl. Retrieving modules from CPAN.
2. Getting Started.
Basic programs. Compiler or interpreter? Statements and blocks. Variables. Scalars. Lists and arrays. Hashes. References. Lexicals and globals.
3. Extending Your Perl Vocabulary.
Basic output. Time. Basic input. Conditional execution. Comparison operators. Logical operators. Order of operations. Loops. Sorting. Files. Built-in variables. Data manipulation functions. Running external programs. fork. eval.
4. Subroutines.
Subroutine basics. Return values. Variables within subroutines. Subroutine arguments. Subroutine references. BEGI and END. Signals.
5. Text Patterns.
What are text patterns? Metacharacters. Anchoring searches. Character classes. Predefined character classes. Parentheses. Grabbing parts of a string. Substitution. Greediness. Options for matching and replacing. study. Regexp objects. tr///. Substituting across multiple files. grep.
6. Modules.
Packages. Modules. Exporting symbols. Some example modules. Documenting modules with POD.
7. Objects.
Objects. Methods. Inheritance. Creating and working with objects.
8. Tying.
Tying. Tying a scalar. Tying a hash. Tying an array.
9. Working with Files.
Basic file access. Random file access. Filehandles. Globbing. Real and effective IDs. File permissions. suid and sgid. Unary file tests. stat. Locking. Directories. Renaming and deleting. Links.
10. Networking and Interprocess Communications.
Pipes. Network communication. Working with Internet protocols.
11. Relational Databases.
What is a relational database? Introducing SQL. SELECT. Joins. Updating and deleting. Indexes. Perl and databases. Simple DBI programs.
12. Building Database Applications.
Database design. Writing the applications. Debugging DBI.
13. Maintenance and Security.
Identifying problems. When things go wrong. Tainting. Debugging. Benchmarking.
14. CGI Programming.
Dynamic Web content. CGI. Error messages and debugging. Redirection. More CGI methods.
15. Advanced CGI Programming.
User registration. Cookies. Graphic output. Templates.
16. Web/Database Applications.
Stock updates. Postcards. Personalization with databases.
17. mod perl.
Installing and configuring mod perl. Configuration directives. Three simple handlers. Apache: Registry. Useful modules.
18. Mason.
Mason. autohandler and dhandler. autohandler. Session management. Conclusion.
A. Bibliography and Recommended Reading.
Perl books. Periodicals. World Wide Web. Databases. Useful Web sites.
Index.