Call : (+91) 968636 4243
Mail : info@EncartaLabs.com
EncartaLabs

CGI with PERL

( Duration: 2 Days )

This CGI with PERL training course provides an in-depth understanding and hands-on knowledge of the capabilities of the de facto Internet client-server communications protocol: Common Gateway Interface (better known as CGI). In this course, you will learn about the specifications of the CGI protocol, details regarding its operation, and how to use the Perl programming language to perform common and powerful CGI communications and processing tasks on a Web server.

By attending CGI with PERL workshop, delegates will learn to:

  • Output dynamically generated HTML to a Web browser
  • Process data from an HTML form
  • Save data to a Web server

Understanding of, and experience with, HTML. Experience with a programming language is not necessary, but recommended.

Anyone who wants to perform CGI communications and processing tasks on a Web server will benefit from this course.

COURSE AGENDA

1

Introduction to CGI

  • CGI: Beyond HTML
  • How a Web Server Functions
  • HTML and CGI
  • The CGI Protocol
  • CGI Programming Languages
2

Introduction to PERL

  • History of Perl
  • Recognizing the Prevalence of Perl
  • Understanding the Principles Behind Perl
  • Perl Advantages & Disadvantages
  • Understanding Perl’s Advantages
  • The Perl Interpreter
  • Understanding the Perl Interpreter
  • Perl File Conventions
  • Naming Your Scripts
  • Using Perl on UNIX
  • Making Your Scripts Executable
3

How Perl Talks to the Browser

  • Perl / Browser Communication
  • Understanding STDOUT
  • Making a CGI Look Like a Web Page
  • Writing a “Hello World” Perl Program
  • Print Using “qq”
  • Using “qq”
  • Printing Multiple Lines
  • Using Print < < HERE
4

Perl Variables

  • Variables
  • Defining Variables and Constants
  • Scalars
  • Using Scalar Variables to Insert Key Values
  • Using Scalar Mathematical Functions
  • Arrays
  • Introduction to Arrays
  • “Pushing” Values onto an Array
  • Hashes
  • Using Hashes
5

Perl Loops & Logic

  • Loops
  • Using a foreach Loop with an Array
  • Logical Operations
  • Defining the Role of Logic
  • if…
  • Introduction to Logical Operations
  • Else & elsif
  • Using if and else Statements Together
  • Using Loops and Logic Together
6

How the Browser Talks to Perl

  • Environment Variables
  • Displaying the ENVIRONMENT Variable
  • GET & POST
  • Using the GET Method
  • Using the POST Method
  • Using CGI.PM
  • Using the param Function
  • Using param with Buttons and Checkboxes
  • Debugging CGIs
  • Debugging with the CGI::Carp.pm Module
7

Storing & Retrieving Information

  • Storing Data
  • Writing Data to a File
  • Appending Data
  • Appending Data to a File
  • Reading Data
  • Reading Data from a File
  • Closing Filehandles
8

REGEX: The Match Operator

  • Introduction to Regexes
  • Using a Regex vs. Comparison Operators
  • The m// Operator
  • Basic Pattern Matching
  • i Modifier
  • Using the i Modifier
  • Special Characters
  • Using \\w, \\W, and \\s
  • Using \\d, ^, and $
  • Using Quantifiers
  • Character Classes
  • Using Character Classes
  • Parentheses
  • Using Parentheses for Assignment
9

REGEX: The Substitute Operator

  • s/// Operator
  • Using the s/// operator
  • Substituting Using Meta-characters
  • Using Greediness
  • More Modifiers
  • Using Global Substitution
  • The “s” Modifier
  • Backreferences
  • Substituting with Backreferences
  • tr/// Operator
  • Using Text Translation
10

Subroutines

  • Organizing Data
  • Using Subroutines for Organization
  • Scoping
  • The Effects of Scoping Using “my”
  • Functions
  • Using a Subroutine as a Function
  • Using Lists with Subroutines
11

CGI Techniques

  • Outputting Graphics
  • Writing a Simple “Hit” Counter
  • Outputting PDF
  • Writing a Form that Displays a PDF File
  • Redirecting the Browser
  • Redirecting the Browser Window
  • Using HTML Templates
  • Using Templates
  • Cookies
  • Setting and Retrieving Cookies
  • Sending E-mail Using CGI
  • A Full-featured Feedback Form
12

CGI Security

  • Web Server Security
  • Examining CGI Security
  • Writing Secure CGIs
  • Using HTTP_REFERER

Encarta Labs Advantage

  • One Stop Corporate Training Solution Providers for over 6,000 various courses on a variety of subjects
  • All courses are delivered by Industry Veterans
  • Get jumpstarted from newbie to production ready in a matter of few days
  • Trained more than 50,000 Corporate executives across the Globe
  • All our trainings are conducted in workshop mode with more focus on hands-on sessions

View our other course offerings by visiting https://www.encartalabs.com/course-catalogue-all.php

Contact us for delivering this course as a public/open-house workshop/online training for a group of 10+ candidates.

Top
Notice
X