Zoom Outline PDF View  or  Email Back to Schedule for Washington


Programming the CGI/Perl Interface for the World Wide Web




SUMMARY:   This course will provide the student with the tools needed to write interactive Web pages using CGI and Perl. The student will design, code and test Perl programs and HTML/CGI front-end panels. The pages will be installed and tested on a local UNIX machine.

AUDIENCE:   Beginning and intermediate level programmers.

PREREQUISITES:   The participant should have basic knowledge of data flow and program design. Knowledge of a program editor. Familiarity with HTML and a web browser.

DURATION:   4 Days.

APPROACH:   This class is taught by lecture with hands-on workshops.

OBJECTIVES:   After taking this course the student should be able to:



  • Describe the CGI interface between an HTML web page and the Perl code
  • Build HTML pages with Forms to invoke CGI/perl
  • Code Perl programs using all available features (loops, if...then...)
  • Use perl's UNIX-type functions (split, for...)
  • Perform file i/o and write HTML responses using local data
  • Create separate utility files that contain common subroutines
  • Among the projects the student will complete are a "hit counter" for web pages, a guestbook, and a data search-and-retrieval program
  • Among the projects to be completed are: guest book, hit counter, reformat data from a form and send e-mail, and generating HTML pages using perl script.

COURSE CONTENT:  

  1. BASIC CONCEPTS

    • WWW and interactivity
    • CGI - what is it?
    • Perl - what is it?


  2. CGI AND FORMS

    • General structure of HTML
    • Specific structure for forms
    • Tags for building forms
    • How CGI accepts information from forms
    • Exercise: build a form, execute an existing program


  3. PERL - OVERVIEW

    • General Syntax
    • History
    • Command line execution
    • CGI execution
    • Functions


  4. DATA

    • Variables
    • Assignments
    • Exercise: define and print arrays


  5. PROGRAM CONTROL

    • if
    • while
    • for


  6. ARRAYS

    • array
    • associative array
    • keys()
    • values()
    • each()
    • delete


  7. PROGRAM CONTROL II

    • foreach


  8. BASIC I/O

    • STDIN
    • STDOUT


  9. I/O FROM CGI

    • examples
    • project


  10. REGULAR EXPRESSIONS

    • concepts
    • samples
    • patterns


  11. FUNCTIONS

    • calls to system functions
    • built in functions


  12. FILE I/O

    • read/write operations

© 2007 Verhoef Training, Inc.

Schedule Dates

Course offered as
Inhouse or Public


There are no classes scheduled for this subject at this time.

Send us a request for this class

or

contact your account manager for scheduling information.

Contact Us


Copyright © 2007 - Verhoef Group of Companies - All Rights Reserved