Date: Wed, 18 Jul 2001 12:38:25 -0500 (CDT) From: Mark Jacobson To: 810-088-05@uni.edu Subject: require "subparseform.lib"; NOT NEEDED... Hi Perl students, The subparseform.lib file is what we used in fall of 2000 to do Perl. ---------------- require "subparseform.lib"; IS NO LONGER THE WAY TO GO, now that use CGI; is here. -------- replacing it with use CGI ":standard"; -------------------- is the way to go for summer of 2001 style of doing Perl. The subparseform.lib has a function called Parse_Form. Where you see the statement &Parse_Form; the Parse_Form sub or function or subroutine from the subparseform.lib library was invoked or called. It created a HASH by the name of %formdata. We no longer need to mess with subparseform.lib and can use CGI qw(:standard) instead! Wherever you see $formdata{'theName'} you should use param('theName') instead! $formdata{'school'} and $formdata{'comments'} would be replaced by: param('school') and param('comments') -------- use CGI ':standard'; is WONDERFUL!!! param( ) function from the CGI.pm Perl module collection of CGI functions is WONDERFUL too!!! Make the changes to guestBook.lib handout and it will work fine. You have guestBook.lib on the handout from Tuesday, July 17th lab. ------- Mark