No no no, don't do it by hand. There's to many things to keep track of,
use the CGI module it handles all the messy details for you and do it better
than anything you can write ( no offense ;p ) ::
use CGI qw/:standard/;;
$var = param('var');
$monkey = param('monkey');
print header();
print "You $monkey your var was $var";
See search.cpan.org for details or
perldoc -M CGI
DMuey
>
> Hallo
> I need simple parsing code for a "get" not a "post".
> that will yeild 4 or 5 variables.
> Lou
>
>
> #I know I need to get rid of the "&"
> # Split the name-value pairs
> @pairs = split(/&/, $ENV{'QUERY_STRING'});
>
> foreach $pair (@pairs)
> {
> # Split the pair up into individual variables.
> ($name, $value) = split(/=/, $pair);
>
>
> }
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]