[an error occurred while processing this directive]

Perl

Menu

Homework 6 Frequently Asked Questions

  1. I've included the correct use lib line, but the CGI script can't find my locally installed modules. Why?
    When the CGI server runs your script, the environment variable $HOME is not set. Therefore, you have to set your library line more explicitly. For example:
    use lib '/cs/lallip/lib/perl5/site_perl/';
  2. For the search functionality, do we need to implement partial or regular expression matches?
    No. Exact match is fine. So if the user enters "Code" into the search form for title, only books actually named "Code" should be returned. "Davinci Code", for example, would not be.
  3. How do we make our data persist between executions?
    An external data file. See te HW3 notes for a hint on how to make that more easy.
Perl Quotes
Perl Quotes