Programming in Perl

Homework 5

Frequently Asked Questions

  1. Do we have to check for valid dates from the user? i.e. do we have to make sure the user doesn't choose January 65th or February 30th?
    Yes. If your form allows the user to enter erroneous data, you must make sure the user has not entered any such erroneous data. The one exception I will make to this is you do not need to concern yourself with leap-years. Pretend they don't exist.
  2. Do we have to sort the list of tasks in any particular order?
    No, I make no requirement about how the list is to be sorted, if at all. Whatever you feel is appropriate is fine.
  3. Can we use Javascript to _______?
    NO. This is a class on Perl, not Javascript or programming real-world web applications. As such, all of your code must be pure Perl and HTML. No Javascript (or any other language) is allowed.
  4. Do we have to account for the possibility that someone acesses our CGI without going through our form? i.e. a value to the date parameter is passed that wouldn't be possible to select on the form?
    While that is certainly an important thing to check in a real-world application, it is not necessary for this assignment. You may presume that your CGI script will only be activated by your form.
  5. For setting the tasks' color to red, should we use the old, depreciated method: <font color='red'>...</font> or the new CSS method: <span style='color:red'>...</span> ?
    Either method is acceptable. This is a course on Perl, not HTML or CSS.