Perl is becoming the scripting language of choice for dynamic Web sites and databases. Perl programs can also run across Macintosh, UNIX, and Windows platforms and is particularly popular among Web site developers. Reuven Lerner has successfully applied the proven Core series approach to this critical open-source technology. By focusing on real-world examples and providing thoroughly tested sample code, Core Perl, provides the solutions to real problems that Web developers need. It is packed with practical techniques used by professional programmers.-- Details Perl's functionality in commonly used applications: text-handling, DBI files, text files, networking and databases-- Takes a "tools-based" approach -- gives readers the tools they need to solve various programming problems quickly-- Demonstrates how to use Perl on the World Wide Web for standalone CGI programs and how to integrate it with mod _perl into the Apache Web Server-- This is the perfect companion to the Perl reference Programming PerlPerl, which is short for Practical Extraction and Report Language, is a programming language developed by Larry Wall. Perl is an interpretive language, which makes it easy to build and test simple programs. Because of its strong text processing abilities, Perl has become one of the most popular languages for writing CGI scripts. Modern versions of Perl support object-oriented programming, complex data structures, modular code and excellent diagnostic error messages.In Part One the author examines the Perl syntax, beginning with major data types (scalars, arrays, and hashes) and quickly moves onto references, complex data structures and built-in functions and variables.In Part Two the author focuses on programs that exercise all of these features, creating simple network clients and servers, parsing text, and using Perl's database interface (DBI). Part Three of the book begins by looking at CGI, a popular method for generating dynamic Web content. This section of the book also covers HTTP cookies, HTML/Perl templates, and how to incorporate a relational database within a site.This book is targeted at Web developers and system administrators with a background in programming
- Paperback | 592 pages
- 177.8 x 231.14 x 45.72mm | 1,088.62g
- 21 Dec 2001
- Pearson Education (US)
- Prentice Hall
- Upper Saddle River, United States
About Reuven Lerner
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.
Table of contents
(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.