perl & cgi

Course Title:

Perl & CGI for Non-Programmers

Duration:

3 days

Prerequisites:

Go to contentNo Perl or cgi knowledge is necessary, but basic HTML experience is assumed

home

Objectives:

The Perl programming language is used to generate CGI scripts that add sophisticated interactivity to websites. Perl allows you to process form data, generate dynamic pages on the fly and validate user information. Perl scripts are used to automatically extract the latest available data from a back-office database ensuring that information on a site is up to date: vital for time-sensitive data such as news, financial information, prices, stock inventory etc.

This practical hands-on three day introductory course is designed specifically for those with no previous programming or coding experience although an understanding of the basics of HTML is required. It will give you the programming skills to make your site more responsive to your site visitors’ needs and requirements

(This course can be taken as two days of individual tuition if you are already an experienced programmer)

about castalia

public courses

microsoft office courses

maximizer courses

courses general

services

training centres

links & news

privacy & terms

contact us

client comments


 

What is scripting?

Client side programming languages
Server side programming languages
Perl, HTML and JavaScript
Working with forms
Tags, attributes and values

PROGRAMMING BASICS

Basic requirements
Uploading files using FTP
Unix commands
Script syntax
Setting Mime type
Setting permissions on files

PERL BUILDING BLOCKS

Why Perl and CGI?
Perl and HTML
Common mistakes
Basic rules
Creating browser output
Documenting your script
Shebang line
Here-doc syntax
Debugging a script
Operations and functions
Servers and directories
Using form methods: POST and GET

PRACTICAL EXERCISES

Questions and answers

INTRODUCTION TO VARIABLES

Scalars, arrays, hashes
Environment variables
Subroutines and functions

ENVIRONMENTAL VARIABLES

HTTP referer
HTTP user agent
Query string
Request method
Server name
HTTP cookie

WORKING WITH SCALARS

Mathematical operators
Incrementing
Connecting strings
Repeating string

UNDERSTANDING ARRAYS

Looping
Getting local time
Getting Array length
Sorting arrays
Shift and unshift

SUBROUTINES

Simple subroutines
Subroutines and input
Using the subroutine return value
External subroutines
Calling external subroutines

PRACTICAL EXERCISES

Questions and answers

HASHES

Getting the pairs
Using the key
Replacing a key
Removing key value pair

ANALYSING DATA

Finding and replacing
Introduction to search patterns
Regular expressions
Substitute and translate

COOKIES

Setting a cookie
Setting expiration date
Cookies and domains
Reading cookies
Limitations of cookies

FORMS AND HIDDEN FORMS

Shopping carts
Saving data to files
Reading from files
Displaying date in files

RECEIVING FEEDBACK

Sending data to sendmail
Posting data

SERVER SIDE INCLUDES

PRACTICAL EXERCISES

Questions and answers

More Programming Courses and Prices


Castalia, 49 Bisterne Avenue, London, E17 3QR. Tel: 020 8926 1564. Fax: 020 8923 7952

Back to Top