> -----Original Message-----
> From: Ryan Kane [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 21, 2001 7:49 PM
> To: [EMAIL PROTECTED]
> Subject: where did I go wrong?
> 
> 
> I have done a few SMALL and minor projects with PERL, and 
> this will be my
> first time experimenting with CGI.  With a lot of guidance 
> from O'Reilly on
> this, I came up with the following script:
> 
> #!/usr/local/bin/perl
> 
> &parse_form_data (*FORM);
> 
> sub parse_form_data
> {
> local (*FORM) = @_;
> local ($query_string, @key_value_pairs, $key_value, $key, $value);
> 
> $query_string = $ENV{'QUERY_STRING'};
> @key_value_pairs = split (/&/, $query_string);
> ...

Yikes, don't do this!

Use the CGI module. Handles all the parameter parsing details for you.

   perldoc CGI

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to