[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] relating to ReadParse routine...



Greetings once again,		


   Boy, it seems to be taking me forever to get on my feet
   with MacPerl here.. 
   :)

   I'm testing the same script as I've done before.  I've 
   got a web page that's basically asking you to input your
   first and last names via a FORM and it calls on the CGI
   script called asgt1.cgi.  Here's what it looks like:

   #!perl

   use CGI;
   &ReadParse(*input);
   print "Content-type: text/html\n\n";
   $MyDate = `date`;
   $fname = $input{'first'};
   $fnamelength = length $fname;
   $lnamelength = length $input{'last'};

   this isn't the whole program, but the rest of it basically
   returns a web page that says, "Your name is ____."  It's
   supposed to throw your name in there...

   When I run the CGI in MacPerl, I get this error:

   # Undefined subroutine &main::ReadParse called.
   File 'Columbia HD:WebSTAR 2.1:asgt1.cgi'; Line 4

   I looked at the code in CGI.pm (as if I'd know what
   it was doing) and I definitely found ReadParse in there.

   So my question(s) is/are: Am I really using the
   ReadParse routine correctly??  That you specify the 
   name of what will be an associative array and the
   elements will be referenced by the value="_____" fields
   that were used in your original HTML code?

   This also includes the question: I think I'm taking for
   granted the notion of the MacPerl CGI script "accepting"
   the data from my HTML form... How does it really receive
   it??  Does it relate to the variable QUERY_STRING ?? (Or
   is this strictly a Un*x thing??

   I appreciate everyone's patience with me in all this.

Thanks very much in advance,

David Barro

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch