Books & Videos

Table of Contents

  1. Chapter 1 Getting Your Tools in Order

    1. Open Source Versus Proprietary Software

    2. Evaluating a Hosting Provider

    3. Web Hosting Alternatives

    4. Getting Started with SSH/Telnet

    5. Meet the Unix Shell

    6. Network Troubleshooting

    7. A Suitable Text Editor

  2. Chapter 2 Getting Started with Perl

    1. Finding Perl on Your System

    2. Creating the “Hello, world!” Script

    3. The Dot Slash Thing

    4. Unix File Permissions

    5. Running (and Debugging) the Script

    6. Perl Documentation

    7. Perl Variables

    8. A Bit More About Quoting

    9. “Hello, world!” as a CGI Script

  3. Chapter 3 Running a Form-to-Email Gateway

    1. Checking for CGI.pm

    2. Creating the HTML Form

    3. The <FORM> Tag’s ACTION Attribute

    4. The mail_form.cgi Script

    5. Warnings via Perl’s -w Switch

    6. The Configuration Section

    7. Invoking CGI.pm

    8. foreach Loops

    9. if Statements

    10. Filehandles and Piped Output

    11. die Statements

    12. Outputting the Message

    13. Testing the Script

  4. Chapter 4 Power Editing with Perl

    1. Being Careful

    2. Renaming Files

    3. Modifying HREF Attributes

    4. Writing the Modified Files Back to Disk

  5. Chapter 5 Parsing Text Files

    1. The “Dirty Data” Problem

    2. Required Features

    3. Obtaining the Data

    4. Parsing the Data

    5. Outputting Sample Data

    6. Making the Script Smarter

    7. Parsing the Category File

    8. Testing the Script Again

  6. Chapter 6 Generating HTML

    1. The Modified make_exhibit.plx Script

    2. Changes to &parse_exhibitor

    3. Adding Categories to the Company Listings

    4. Creating Directories

    5. Generating the HTML Pages

    6. Generating the Top-level Page

  7. Chapter 7 Regular Expressions Demystified

    1. Delimiters

    2. Trailing Modifiers

    3. The Search Pattern

    4. Taking It for a Spin

    5. Thinking Like a Computer

  8. Chapter 8 Parsing Web Access Logs

    1. Log File Structure

    2. Converting IP Addresses

    3. The Log-Analysis Script

    4. Different Log File Formats

    5. Storing the Data

    6. The “Visit” Data Structure

  9. Chapter 9 Date Arithmetic

    1. Date/Time Conversions

    2. Using the Time::Local Module

    3. Caching Date Conversions

    4. Scoping via Anonymous Blocks

    5. Using a BEGIN Block

  10. Chapter 10 Generating a Web Access Report

    1. The &new_visit and &add_to_visit Subroutines

    2. Generating the Report

    3. Showing the Details of Each Visit

    4. Reporting the Most Popular Pages

    5. Fancier Sorting

    6. Mailing the Report

    7. Using cron

  11. Chapter 11 Link Checking

    1. Maintaining Links

    2. Finding Files with File::Find

    3. Looking for Links

    4. Extracting

    5. Putting It All Together

    6. Using CPAN

    7. Checking Remote Links

    8. A Proper Link Checker

  12. Chapter 12 Running a CGI Guestbook

    1. The Guestbook Script

    2. Taint Mode

    3. Guestbook Preliminaries

    4. Untainting with Backreferences

    5. File Locking

    6. Guestbook File Permissions

  13. Chapter 13 Running a CGI Search Tool

    1. Downloading and Compiling SWISH-E

    2. Indexing with SWISH-E

    3. Running SWISH-E from the Command Line

    4. Running SWISH-E via a CGI Script

  14. Chapter 14 Using HTML Templates

    1. Using Templates

    2. Reading Fillings Back In

    3. Rewriting an Entire Site

  15. Chapter 15 Generating Links

    1. The Docbase Concept

    2. The CyberFair Site’s Architecture

    3. The Script’s Data Structure

    4. Using Data::Dumper

    5. Creating Anonymous Hashes and Arrays

    6. Automatically Generating Links

    7. Inserting the Links

  16. Chapter 16 Writing Perl Modules

    1. A Simple Module Template

    2. Installing the Module

    3. The Cyberfair::Page Module

  17. Chapter 17 Adding Pages via CGI Script

    1. Why Add Pages with a CGI Script?

    2. A Script for Creating HTML Documents

    3. Controlling a Multistage CGI Script

    4. Using Parameterized Links

    5. Building a Form

    6. Posting Pages from the CGI Script

    7. Running External Commands with system and Backticks

    8. Race Conditions

    9. File Locking

    10. Adding Link Checking

  18. Chapter 18 Monitoring Search Engine Positioning

    1. Installing WWW::Search

    2. A Single-Search Results Tool

    3. A Multisearch Results Tool

    4. The map Function

  19. Chapter 19 Keeping Track of Users

    1. Stateless Transactions

    2. Identifying Individual Users

    3. Basic Authentication

    4. Automating User Registration

    5. Storing Data on the Server

    6. The Register Script

    7. The Verification Script

  20. Chapter 20 Storing Data in DBM Files

    1. Data Storage Options

    2. The tie Function

    3. A DBM Example Script

    4. Blocking Versus Nonblocking Behavior

    5. Storing Multilevel Data in DBM Files

    6. An MLDBM-Using Registration Script

    7. An MLDBM-Using Verification Script

  21. Chapter 21 Where to Go Next

    1. Unix System Administration

    2. Programming

    3. Apache Server Administration and mod_perl

    4. Relational Databases

    5. Advocacy

  1. Colophon