CSE 341 -- Programming Languages

Winter 2000

Department of Computer Science and Engineering, University of Washington

Steve Tanimoto (instructor) and Jeremy Baer (teaching assistant).

Assignment P1

Version 1.00 of February 17.  Subject to change.

Perl Warmup

Due date and time: Friday, February  25, 2000 at 10:30 (Submit your assignment electronically by filling out an online submission form.). 

 

Title: Perl -- Computing text documents for the Web

Purposes:  To explore a few of Perl's facilities for text processing and to gain a modicum of experience in the use of Perl with a Web server.

Instructions:   Write an HTML page and a Perl script that allow a user to go to your web page, enter some text, and get an analysis of it back as a new web page.  The analysis should include the number of occurrences of words of one letter, the number with two letters, etc.

Details: Name your HTML web page sentence-analyzer.html and install it in your www directory on cubist.  Name your Perl file analyze-sentence.pl and put it in your www on cubist as well.  The html file should be world readable, and the .pl file should be executable, group readable, but not world readable.

Programming style:  Comment your code clearly.