"David A. Barro" <dab112@cac.psu.edu> writes: [snip] } } 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 Two things you need to learn: what the error message means and how to read the pod documentation that comes with CGI.pm. The error message tells you exactly what's wrong: "use CGI" is not importing ReadParse into the namespace of your script. Your script looks for a ReadParse in the main namespace (that's why it's complaining about &main::ReadParse) and doesn't find it. Reading the pod tells you exactly how to use ReadParse. Start up Shuck (it's in your MacPerl folder if you don't already know about it), Command-O, navigate to your MacPerl lib folder, and open CGI.pm. Command-F ReadParse, and you'll see that you'll find this example use CGI; CGI::ReadParse; print "The value of the antique is $in{antique}.\n"; In other words, you have to *tell* Perl where to find ReadParse by giving it the full "path" to the routine. Looking at the CGI.pm source, it looks like you could also say use CGI qw(:cgi-lib); ReadParse; } } 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. The pod should tell you the answers to the CGI.pm related questions. My experience with MacPerl CGI's is extremely limited, but I believe the CGI glue works with the HTTP server to provide the standard environment variables, including QUERY_STRING. } }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 --- Paul J. Schinder NASA Goddard Space Flight Center Code 693, Greenbelt, MD 20771 schinder@pjstoaster.pg.md.us ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch