From: "Johnstone, Colin" <[EMAIL PROTECTED]>
> for example I read my form variables into a hash for processing.
>
> I then reference them by the form fieldname.
>
> #read STDIN, $PostData, $ENV{'CONTENT_LENGTH'};
>
> #print "post data =$PostData<br>";
>
> #postdata will look like this
> #[EMAIL PROTECTED]&radAction=unsubscribe&rad
> #Format=html&Submit=Submit I need to extract from this string the
> #fields and their values
> my @fields = split( /\&/, $PostData);
>
> ...
Please don't do this. The query/posted data parsing is not as simple
as it seems. You are much safer if you
use CGI;
Or maybe
use CGI::Deurl;
Both available from CPAN, CGI.pm should already be installed.
Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]