The Perl You Need to Know
April 10, 2000
The Perl You Need to Know Part 1: Introduction to Perl
Who's Afraid of Perl?
Getting Perl
Running Perl Programs
Perl Variables: Scalars
Table 1. Basic Perl Operators
Perl Variables: Comparing Scalars
Table 2. Perl Comparison Operators
Perl Variables: Lists (aka Arrays)
Perl Variables: Hashes
Perl Functions
Perl Program Flow: Conditionals and Loops
Conclusion
The Perl You Need to Know Part 2: Using Perl to Interact With Web Pages
Perl Pattern Matching: Regular Expressions
CGI and Object Oriented Perl: Background
Notes on Running CGI
CGI and Object Oriented Perl: Input
CGI and Object Oriented Perl: Output
Form Validation
Registration Log
A Peek at Environment Variables
Detour: Redirection
Conclusion
The Perl You Need to Know Part 3: Maintaining State
The State of State
Cookies: Our Misunderstood Friends
Cookie Example: Part I -- Retrieving the Cookie
Cookie Example: Part II -- Creating the Cookie
Final Cookie Thoughts
Single-Session State Maintenance
Building a Pizza: Taking the Order
Building a Pizza: Calculating Cost
Building a Pizza: Completing the Order
Building a Pizza: Updating the Order
Final Thoughts
The Perl You Need to Know Part 4: On-the-Fly HTML and Web Templates
Code Like Grandma Used to Make
CGI.pm, the Middleman
Tantalizing Templates: Live Date
Tantalizing Templates: Build-a-Pizza Meets the Smallville Gazette
Conclusion
The Perl You Need to Know Part 5: Processing and Parsing Web Pages
A Simple Goal
Simply, LWP::Simple
Grasping for Tags
Pulling Tags Like Taffy: TokeParser
Parsing Attributes with Ease
The Proof is in the Parsing: A Web Page Summarizer
The Perl You Need to Know Part 6: Dabbling in Live Databases — Microsoft Access
Data-basics
Data-Basics II: the SeQueL
Preparing Microsoft Access
Perl Module Mania: DBI and DBD
A Simple Query
Query Know How
Where We Stand
The Perl You Need to Know Part 7: Dabbling in Live Databases — MySQL
The MySQL Model
MySQL Prep
Privileged MySQL
Your first MySQL Database
Your MySQL Database: Step 2
Your MySQL Database: Step 3
Where's the Perl?
Dabbling in Live Databases: MySQL: Conclusion
The Perl You Need to Know Part 8: Dabbling in Live Databases — GUFE (goofy) — The Generic but Usable Front End
Let's Talk GUFE
Let's Walk GUFE
GUFE Walkthrough: Part 2
GUFE Walkthrough: Part 3
GUFE Walkthrough: Part 4
GUFE Walkthrough: Part 5
The Perl You Need to Know Part 9: The Millennium Episode — Time and Date Manipulation
Human Friendly Time
Chopped Time
Reversing Time
Date::Manip Gymnastics
Calendar Calisthenics
Conclusions
The Perl You Need to Know Part 10: Untangling Lists and Hashes
Refresher: Lists and Hashes
All Sorts of Sorts: Lists
All Sorts of Sorts: Hashes
A List of Lists
A List of Hashes
A Hash of Lists
A Hash of Hashes
Reprieve
The Perl You Need to Know Part 11: A Reference of References
Dereference, my dear
Shall we dance, sweet reference?
Take my Parameters, Please
Come Sail Away
- mod_perl Trilogy
-
The Perl You Need to Know Part 12: Special: Introduction to mod_perl
The Story of Forks
Enter the Hero
Getting the Goods
Gee, it's huge
Basic Configuration
Start Your Coding
Take Home Message: Optimizations
The Perl You Need to Know Part 13: Special: Introduction to mod_perl Part 2
My() Troubles
Repackage Your Way to Success
Compilation Amnesia
Conclusion
The Perl You Need to Know Part 14: Special: Introduction to mod_perl Part 3
Who's Your Daddy?
More Who's Your Daddy
Database Savoir Faire
Building the Optimized Beast
Conclusion and Resources
The Perl You Need to Know Part 15: Embedded Perl
The Embedded Advantage
Embedding Perl
Apache::ASP -- Setup
Apache::ASP -- CGI Migration
Apache::ASP -- Ebony and Ivory Living Together in Harmony
To Embed ... or Not to Embed
The Perl You Need to Know Part 16: A Simple Approach to PDF
Skipping the Learning Curve
The Kindness of Strangers: HTMLDOC
HTML Becomes PDF
Enter the Perl
Conclusion
- Personalization Methods
The Perl You Need to Know Part 17: Personalization Methods Part 1 with a look at Cookies
Reinventing the wheel
The State of Statelessness: Cookies
Statelessness Sophistication
Living Together in Harmony
In the Kitchen with Perl
Out of the Oven
Crumbs
- The Perl You Need to Know Part 18: Personalization Methods Part 2: Databases and Cookies
Databases and Cookies
The Personalization Database
Baking with Julia
Fresh Out of the Oven
-
The Perl You Need to Know Part 19: Personalization Methods Part 3: Personalization Methods Part 3, Embperl
Meet the Embperl
A Short Course in Embperl
Execute, @param, and %fdat
Cookies from the Oven
By Invitation Only: Requiring Login
User Sensitivity 101
Epilogue
The Perl You Need to Know Part 20: Disk-based Data Structures (DBM)
The Humble Hash as DB
A Fistful of DBM's
Tie a Yellow Ribbon ...
Climbing the BTree
Getting Deep with Hashes
Conclusion
The Perl You Need to Know Part 21: Benchmarking Perl
Out of the Starting Block
Apples to Apples, Oranges to Oranges
Run-time Timing
The Perl You Need to Know Part 22: Warts and All
Common Criticisms
Simplistic Subroutines
A Toolbox Heritage
The Perl You Need to Know Part 23: CPAN, a Farmer's Market for Perl
A Dark And Stormy Night ...
Inside CPAN
They Shoot Coders, Don't They?
A Private Stash (of modules)
The Perl You Need to Know Part 24: Introduction to Object Oriented Perl
Classism
A Matter of (Indirect) Syntax
The Perl You Need to Know Part 25: A Series Ends, A New Perl Is Born
Whither Perl 5?
Interpolation
|