Tables of Contents for Perl for Web Site Management
Getting Your Tools in Order
1
25
Open Source Versus Proprietary Software
1
3
Evaluating a Hosting Provider
4
3
Web Hosting Alternatives
7
1
Getting Started with SSH/Telnet
8
2
Network Troubleshooting
18
4
A Suitable Text Editor
22
4
Getting Started with Perl
26
25
Finding Perl on Your System
26
1
Creating the ``Hello, world!'' Script
27
5
Running (and Debugging) the Script
35
3
A Bit More About Quoting
43
1
``Hello, world!'' as a CGI Script
44
7
Running a Form-to-Email Gateway
51
23
Creating the HTML Form
53
3
The <FORM> Tag's Action Attribute
56
1
The mail_form.cgi Script
57
2
Warnings via Perl's -w Switch
59
1
The Configuration Section
60
1
Filehandles and Piped Output
68
1
Outputting the Message
70
2
Power Editing with Perl
74
24
Modifying HREF Attributes
87
8
Writing the Modified Files Back to Disk
95
3
The ``Dirty Data'' Problem
98
2
Outputting Sample Data
118
3
Making the Script Smarter
121
3
Parsing the Category File
124
4
Testing the Script Again
128
7
The Modified make_exhibit.plx Script
135
13
Changes to &parse_exhibitor
148
3
Adding Categories to the Company Listings
151
3
Generating the HTML Pages
156
9
Generating the Top-level Page
165
2
Regular Expressions Demystified
167
13
Thinking Like a Computer
173
7
Parsing Web Access Logs
180
19
Converting IP Addresses
182
4
The Log-Analysis Script
186
5
Different Log File Formats
191
2
The ``Visit'' Data Structure
195
4
Date/Time Conversions
199
2
Using the Time::Local Module
201
2
Caching Date Conversions
203
2
Scoping via Anonymous Blocks
205
1
Generating a Web Access Report
208
37
The &new_visit and &add_to_visit Subroutines
208
3
Generating the Report
211
4
Showing the Details of Each Visit
215
8
Reporting the Most Popular Pages
223
1
Finding Files with File::Find
246
4
Putting It All Together
255
11
Checking Remote Links
272
5
A Proper Link Checker
277
14
Running a CGI Guestbook
291
19
Guestbook Preliminaries
297
5
Untainting with Backreferences
302
1
Guestbook File Permissions
307
3
Running a CGI Search Tool
310
16
Downloading and Compiling SWISH-E
310
5
Indexing with SWISH-E
315
1
Running SWISH-E from the Command Line
316
1
Running SWISH-E via a CGI Script
317
9
Using HTML Templates
326
18
Reading Fillings Back In
330
4
Rewriting an Entire Site
334
10
The CyberFair Site's Architecture
345
12
The Script's Data Structure
357
1
Creating Anonymous Hashes and Arrays
359
1
Automatically Generating Links
360
3
Writing Perl Modules
365
11
A Simple Module Template
366
3
Installing the Module
369
1
The Cyberfair::Page Module
370
6
Adding Pages via CGI Script
376
27
Why Add Pages with a CGI Script?
376
1
A Script for Creating HTML Documents
377
11
Controlling a Multistage CGI Script
388
1
Using Parameterized Links
389
1
Posting Pages from the CGI Script
394
2
Running External Commands with system and Backticks
396
2
Monitoring Search Engine Positioning
403
17
Installing WWW::Search
404
1
A Single-Search Results Tool
405
5
A Multisearch Results Tool
410
7
Keeping Track of Users
420
38
Stateless Transactions
421
1
Identifying Individual Users
422
1
Automating User Registration
426
1
Storing Data on the Server
427
7
The Verification Script
451
7
Storing Data in DBM Files
458
21
Blocking Versus Nonblocking Behavior
461
2
Storing Multilevel Data in DBM Files
463
1
An MLDBM-Using Registration Script
463
7
An MLDBM-Using Verification Script
470
9
Unix System Administration
479
1
Apache Server Administration and mod_perl
484
1