Perl/CGI Introduction
Duration
Two Days
Overview
In this course, you will learn about the Common Gateway Interface (CGI)protocol for Internet client-server communications, and how to use the Perl programming language to perform common and powerful communications and processing tasks on a Web server.
Outline
Lesson 1: Introduction to CGI
- CGI: Beyond HTML
- How a Web Server Functions
- The CGI Protocol
- CGI Programming Languages
Lesson 2: Introduction to Perl
- History of Perl
- Perl Advantages & Disadvantages
- The Perl Interpreter
- Perl File Conventions
- Using Perl on UNIX
Lesson 3: How Perl Talks to the Browser
- Perl / Browser Communication
- Making a CGI Look Like a Web Page
- Print Using "qq"
- Printing Multiple Lines
Lesson 4: Perl Variables
- Variables
- Scalars
- Arrays
- Hashes
Lesson 5: Perl Loops & Logic
- Loops
- Logical Operations
- if.
- Else & elsif
Lesson 6: How the Browser Talks to Perl
- Environment Variables
- GET & POST
- Using CGI.PM
- Debugging CGIs
Lesson 7: Storing & Retrieving Information
- Storing Data
- Appending Data
- Reading Data
Lesson 8: REGEX: The Match Operator
- Introduction to Regexes
- The m// Operator
- i Modifier
- Special Characters
- Character Classes
- Parentheses
Lesson 9: REGEX: The Substitute Operator
- s/// Operator
- More Modifiers
- Backreferences
- tr/// Operator
Lesson 10: Subroutines
- Organizing Data
- Scoping
- Functions
Lesson 11: CGI Techniques
- Outputting Graphics
- Outputting PDF
- Redirecting the Browser
- Using HTML Templates
- Cookies
- Sending E-mail Using CGI
Lesson 12: CGI Security
- Web Server Security
- Writing Secure CGIs