4.16 System Administration4 Labs4.14 awk - A Programming Language4.15 perl -- A programming Language

4.15 perl -- A programming Language

  perl is a

programming language developed and supported by Larry Wall currently employed by O'Reilly & Associates, Inc.. It is an interpreted programming language with good string handling capabilities. It accounts for a lot of the CGI programming that is done on the WWW.

Look at these two books:

You may also want to look at the URLs:

There are two programs you may want to look at:

In this lab I would like you to:

  1. Create the directory cgi-bin in your existing directory ~/public_html/.
  2. Make this new directory your working directory.
  3. copy over perl.cgi from the ftp site:
    ftp://lt.tucson.az.us/pub/perl.cgi or from /home/cis137/perl.cgi
    cp /home/cis137/perl.cgi .
    
  4. Place perl.cgi and the sed and awk data files in your directory public_html/cgi-bin directory.
  5. Set the permissions so that you can run the program as a CGI script. Set the data files to world readable. When the program is run it will not be run as you.
  6. Modify the program so that it does the last part of the awk lab, NOT the awk program that I wrote.
  7. Add your name and the class number, "CIS137", to your output.
  8. Turn in a printed output of your results from a web browser. The URL to access your page will be:
    http://gort.wcn.pima.edu/~user-name/cgi-bin/perl.cgi
    
your-name
TABER CIS137
Lab 4.15: perl 

Instructor: Louis Taber, ltaber at uml dot lt dot Tucson dot AZ dot us (520) 206-6850
My new web Home site in Cleveland, OH
The Pima Community College web site

4.16 System Administration4 Labs4.14 awk - A Programming Language4.15 perl -- A programming Language